Exemple #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         Singletons.textManager.AddEntry(notepad.text);
         Application.Quit();
     }
     else if (Input.GetKeyDown(KeyCode.Return) && cameraControl.CanSwitchCharacter() && notepad.text.Length > 0)
     {
         ZoomOutOfCharacter();
     }
 }