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