Exemple #1
0
 protected void RefreshTitleTexture()
 {
     if (flightCameraFilter != null && MovieTimeFilter.LoadedScene() == MovieTimeFilter.eFilterType.Flight)
     {
         flightCameraFilter.RefreshTitleTexture();
     }
 }
Exemple #2
0
 private void LateUpdate()
 {
     if (flightCameraFilter != null && MovieTimeFilter.LoadedScene() == MovieTimeFilter.eFilterType.Flight)
     {
         flightCameraFilter.LateUpdate();
     }
 }
 public void SetCameraMode(CameraFilter.eCameraMode mode)
 {
     if (flightCameraFilter != null && MovieTimeFilter.LoadedScene() == MovieTimeFilter.eFilterType.Flight)
     {
         flightCameraFilter.SetMode(mode);
     }
 }
Exemple #4
0
 private CameraFilter.eCameraMode GetCameraMode()
 {
     if (flightCameraFilter != null && MovieTimeFilter.LoadedScene() == MovieTimeFilter.eFilterType.Flight)
     {
         return(flightCameraFilter.GetMode());
     }
     return(CameraFilter.eCameraMode.Normal);
 }
        public void Start()
        {
            guiStyle.fontSize = 20;

            flightCameraFilter = CreateFilter(FlightCamera.fetch.mainCamera);

            if (flightCameraFilter != null)
            {
                flightCameraFilter.Initialize("Flight", MovieTimeFilter.eFilterType.Flight);
            }

            RefreshTitleTexture();
        }
Exemple #6
0
 public MovieTimeFilter CreateFilter(Camera camera)
 {
     if (camera != null)
     {
         MovieTimeFilter retVal = camera.gameObject.GetComponent <MovieTimeFilter>();
         if (retVal == null)
         {
             camera.gameObject.AddComponent <MovieTimeFilter>();
             retVal = camera.gameObject.GetComponent <MovieTimeFilter>();
         }
         return(retVal);
     }
     return(null);
 }
Exemple #7
0
        public void Start()
        {
            guiStyle.fontSize = 20;

            flightCameraFilter = CreateFilter(FlightCamera.fetch.mainCamera);

            if (flightCameraFilter != null)
            {
                flightCameraFilter.Initialize("Flight", MovieTimeFilter.eFilterType.Flight);
            }

            RefreshTitleTexture();

            //get localization strings
            locTarget      = Localizer.Format("#autoLOC_HULL_DOCK_001");
            locRelVelocity = Localizer.Format("#autoLOC_HULL_DOCK_002");
        }