protected void RefreshTitleTexture() { if (flightCameraFilter != null && MovieTimeFilter.LoadedScene() == MovieTimeFilter.eFilterType.Flight) { flightCameraFilter.RefreshTitleTexture(); } }
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); } }
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(); }
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); }
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"); }