private void OnTriggerEnter(Collider other) { if (other.tag.Equals("Castle")) { SceneManagerScript sceneManager = GameObject.Find("SceneManager").GetComponent <SceneManagerScript>(); sceneManager.LoseGame(); } }
private void OnTriggerEnter(Collider other) { if (other.tag.Equals("Castle")) { SceneManagerScript sceneManager = GameObject.Find("SceneManager").GetComponent <SceneManagerScript>(); sceneManager.LoseGame(); } }