Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (!wasTriggered)
     {
         if (other.CompareTag(PlayerTag))
         {
             ExitCave();
             LiveSession.SavePlayer();
             wasTriggered = true;
         }
     }
 }
Пример #2
0
 public void ReturnToMenu()
 {
     LiveSession.SavePlayer();
     GetComponent <SceneTransition>().DelayedSceneChange("MainMenu");
 }