private void OnTriggerEnter(Collider other) { if (!wasTriggered) { if (other.CompareTag(PlayerTag)) { ExitCave(); LiveSession.SavePlayer(); wasTriggered = true; } } }
public void ReturnToMenu() { LiveSession.SavePlayer(); GetComponent <SceneTransition>().DelayedSceneChange("MainMenu"); }