示例#1
0
 void switchToNext()
 {
     if (next != null)
     {
         active = false;
         CarControl cc = (CarControl)next.GetComponent(typeof(CarControl));
         cc.Active();
     }
 }
示例#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);
     }
 }