Exemple #1
0
    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;
    }
Exemple #2
0
 void Start()
 {
     carController = GameObject.FindObjectOfType(typeof(MainCarController)) as MainCarController;
 }
 void Start()
 {
     StartPanel.SetActive(true);
     carController = GameObject.FindObjectOfType(typeof(MainCarController)) as MainCarController;
 }