예제 #1
0
        public static void OpenLoadWindow()
        {
            SimManager.SetStatus(SimulationStatus.Paused);
            var win = UnityEngine.Object.Instantiate(
                Resources.Load("Prefabs/UI/Windows/SaveLoad/SaveLoad Window") as GameObject, UIManager.Transform, false);

            win.GetComponent <SaveLoadWindow>().SetLoadMode();
        }
예제 #2
0
 private void EditMode()
 {
     if (Input.GetKeyDown(KeyCode.Delete))
     {
         Selectable.ShortcutDelete();
         return;
     }
     if (Input.GetKeyDown(KeyCode.Backslash))
     {
         SimManager.SetStatus(SimulationStatus.Paused);
         return;
     }
 }
예제 #3
0
 private void PlayMode()
 {
     if (Input.GetKeyDown(KeyCode.BackQuote))
     {
         SimManager.SetStatus(SimulationStatus.Paused);
         return;
     }
     if (Input.GetKeyDown(KeyCode.Alpha1))
     {
         SimManager.SetStatus(SimulationStatus.Running);
         TimeKeeper.TimeSpeed = TimeSpeed.Slow;
         return;
     }
     if (Input.GetKeyDown(KeyCode.Alpha2))
     {
         SimManager.SetStatus(SimulationStatus.Running);
         TimeKeeper.TimeSpeed = TimeSpeed.Normal;
         return;
     }
     if (Input.GetKeyDown(KeyCode.Alpha3))
     {
         SimManager.SetStatus(SimulationStatus.Running);
         TimeKeeper.TimeSpeed = TimeSpeed.Fast;
         return;
     }
     if (Input.GetKeyDown(KeyCode.Alpha4))
     {
         SimManager.SetStatus(SimulationStatus.Running);
         TimeKeeper.TimeSpeed = TimeSpeed.Ultra;
         return;
     }
     if (Input.GetKeyDown(KeyCode.Alpha5))
     {
         SimManager.SetStatus(SimulationStatus.Running);
         TimeKeeper.TimeSpeed = TimeSpeed.WTF;
         return;
     }
     if (Input.GetKeyDown(KeyCode.Backslash))
     {
         SimManager.SetStatus(SimulationStatus.EditMode);
         return;
     }
 }