private void OnDisable() { transform.parent.ToRect().sizeDelta = PanelSize[DashboardMode.Simulation]; CameraOptions.SetActive(false); SimulationPanel.Instance.gameObject.SetActive(true); SimulationInfo.SetActive(true); }
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(); }