Esempio n. 1
0
 public void TransferPedsFromPlaneToHangar(int count)
 {
     if (planeController.publicPassengers >= count && playerStats.passengersWaiting + count <= playerStats.maxPassengers)
     {
         int removedPeds = planeController.RemovePassengers(count);
         playerStats.AddPassengers(removedPeds);
         playerStats.SavePlayer();
     }
     else
     {
         if (planeController.publicPassengers >= count)
         {
             Debug.Log("Cannot remove passengers to hangar. Not enough passengers.");
         }
         if (playerStats.passengersWaiting + count <= playerStats.maxPassengers)
         {
             Debug.Log("Cannot remove passengers to hangar. Not enough room." + (playerStats.passengersWaiting + count) + playerStats.maxPassengers);
         }
     }
 }