Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        player           = FindObjectOfType <PlayerController>();
        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;
        dashFill.color   = readyDashColor;
        hitMarker.gameObject.SetActive(false);
        timedCourse = FindObjectOfType <TimedCourse>();

        if (timingIsDisplayed)
        {
            EnemiesText.gameObject.SetActive(true);
            TimeText.gameObject.SetActive(true);
            bestTimeText.gameObject.SetActive(true);
        }
    }
Beispiel #2
0
 private void Start()
 {
     timedCourse = FindObjectOfType <TimedCourse>();
 }