// 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); } }
private void Start() { timedCourse = FindObjectOfType <TimedCourse>(); }