private void Awake() { parkingSpots = new List <ParkingSpot>(); for (int i = 0; i < maxSpots; i++) { parkingSpots.Add(new ParkingSpot()); } parkingElevator = GetComponent <ParkingElevator>(); parkingPlatform = GetComponentInChildren <ParkingPlatform>(); parkingElevator.onElevatorDown.AddListener(MovePlatform); }
private void Awake() { parkingMain = GetComponentInParent <ParkingMain>(); parkingPlatform = GetComponent <ParkingPlatform>(); }