Exemple #1
0
 public void SpawnPilot()
 {
     while (usablePilot == null)
     {
         if (PlayerPrefs.GetInt("CurrentPilot") != 0)
         {
             usablePilot = SetUsablePilot(PlayerPrefs.GetInt("CurrentPilot"));
         }
         else
         {
             usablePilot = SetUsablePilot(201);
         }
     }
     if (usablePilot != null && isPilotSpawned == false)
     {
         usablePilot.Spawn();
         isPilotSpawned = true;
     }
 }