예제 #1
0
        /*private void onActiveJointNeedUpdate(Vessel v) { Utils.Log("#onActiveJointNeedUpdate"); }*/
        private void OnCameraChange(CameraManager.CameraMode cameraMode)
        {
            Enums.CameraModes currentCameraMode = Enums.ConvertCameraMode(cameraMode);
            bool cameraChanged = SoundtrackEditor.CurrentSituation.cameraMode != currentCameraMode;

            SoundtrackEditor.CurrentSituation.cameraMode = currentCameraMode;
            if (cameraChanged && MonitorCameraMode)
            {
                SoundtrackEditor.Instance.OnSituationChanged();
            }
        }
예제 #2
0
 public bool CheckCameraMode()
 {
     if (CameraManager.Instance != null)
     {
         var curMode = Enums.ConvertCameraMode(CameraManager.Instance.currentCameraMode);
         if ((curMode & cameraMode) != curMode)
         {
             //Utils.Log("Prereq failed: Expected camMode " + cameraMode + ", but was " + curMode);
             return(false);
         }
     }
     return(true);
 }