private void OnTriggerEnter(Collider other) { //stop timer once finish line is hit if (other.CompareTag("Player")) { timerScript.CancelInvoke(); } }
private void OnTriggerEnter(Collider other) { //stop timer once finish line is hit if (other.CompareTag("Player")) { timerScript.CancelInvoke(); } }