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