Ejemplo n.º 1
0
 // Update is called once per frame
 public void TransferPedsFromHangarToPlane(int count)
 {
     if (planeController.publicPassengers + count <= planeController.maxPassengers && playerStats.passengersWaiting >= count)
     {
         int addedPeds = planeController.AddPassengers(count);
         playerStats.RemovePassengers(addedPeds);
         playerStats.SavePlayer();
     }
     else
     {
         Debug.Log("Cannot add passengers to plane.");
     }
 }