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(); }
private void EditMode() { if (Input.GetKeyDown(KeyCode.Delete)) { Selectable.ShortcutDelete(); return; } if (Input.GetKeyDown(KeyCode.Backslash)) { SimManager.SetStatus(SimulationStatus.Paused); return; } }
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; } }