Ejemplo n.º 1
0
 void switchToNext()
 {
     if (next != null)
     {
         active = false;
         CarControl cc = (CarControl)next.GetComponent(typeof(CarControl));
         cc.Active();
     }
 }
Ejemplo n.º 2
0
 void switchToPrev()
 {
     if (prev != null)
     {
         active = false;
         control.setVisible(false);
         CarControl cc = (CarControl)prev.GetComponent(typeof(CarControl));
         cc.Active();
     }
     else
     {
         Chooser.DestroyMaps();
         SceneManager.LoadScene(0);
     }
 }