public void OnCollisionEnter(Collision collision) { if (collision.other.gameObject.tag == "Player") { CanvasScript.GetInstance().GameOver(); PlayerController.GetInstance().gameObject.GetComponent <Rigidbody>().velocity = Vector3.zero; } }
public void CallWinScreen() { CanvasScript.GetInstance().Victory(); }