void Start() { manualCarController = GameObject.FindObjectOfType(typeof(MainCarController)) as MainCarController; if (manualCarController != null && manualCarController.enabled) { isManual = true; } if (!isManual) { automaticCarController = GameObject.FindObjectOfType(typeof(CarControllerAutomatic)) as CarControllerAutomatic; } SetHighlight(start, false); SetHighlight(off, true); carStarted = false; }
void Start() { carController = GameObject.FindObjectOfType(typeof(MainCarController)) as MainCarController; }
void Start() { StartPanel.SetActive(true); carController = GameObject.FindObjectOfType(typeof(MainCarController)) as MainCarController; }