private void OnEnable() { transform.parent.ToRect().sizeDelta = PanelSize[DashboardMode.EditMode]; SimulationPanel.Instance?.gameObject.SetActive(false); SimulationInfo.SetActive(false); CameraOptions.SetActive(true); try { SimManager.SimStatus = SimulationStatus.EditMode; } catch (NullReferenceException) { } CameraSwitch.OnEagleEye(); }
public static void ExitEditMode() { SimManager.SimStatus = SimulationStatus.Paused; CameraSwitch.OnRTS(); Instance.gameObject.SetActive(false); }