Beispiel #1
0
        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();
        }
Beispiel #2
0
 public static void ExitEditMode()
 {
     SimManager.SimStatus = SimulationStatus.Paused;
     CameraSwitch.OnRTS();
     Instance.gameObject.SetActive(false);
 }