Ejemplo n.º 1
0
        private void addFlightCamera()
        {
            GameObject obj = new GameObject("CurrentFlightCameraCapture", typeof(CurrentFlightCameraCapture));

            this.cameraCaptureTest = (CurrentFlightCameraCapture)obj.GetComponent(typeof(CurrentFlightCameraCapture));
            addCameraCapture(cameraCaptureTest);
        }
Ejemplo n.º 2
0
 private void removeFlightCameraIfNotFlight(GameScenes data)
 {
     if (data != GameScenes.FLIGHT && cameraCaptureTest)
     {
         removeCamera(cameraCaptureTest.cameraManagerName());
         Destroy(cameraCaptureTest.gameObject);
         cameraCaptureTest = null;
     }
 }