Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Vector3 AverageSeatPosition()
- {
- Vector3 avgPos = Vector3.zero;
- if (seats.Count > 0) {
- foreach (Seat _seat in seats)
- {
- avgPos += _seat.transform.position;
- }
- avgPos /= seats.Count;
- }
- return avgPos;
- }
Advertisement
Add Comment
Please, Sign In to add comment