public CameraApi(ApiImplementation apiImplementation)
 {
     m_apiImplementation = apiImplementation;
     OnTransitionStart  += TransitionStarted;
     OnTransitionEnd    += TransitionEnded;
     m_inputHandler      = new CameraInputHandler();
 }
Beispiel #2
0
 internal CameraApi(ApiImplementation apiImplementation, CameraApiInternal cameraApiInternal)
 {
     m_apiImplementation = apiImplementation;
     m_inputHandler      = new CameraInputHandler();
     OnTransitionStart  += TransitionStarted;
     OnTransitionEnd    += TransitionEnded;
     m_cameraApiInternal = cameraApiInternal;
     m_cameraApiInternal.OnTransitionStartInternal += () => OnTransitionStart(this, m_controlledCamera);
     m_cameraApiInternal.OnTransitionEndInternal   += () => OnTransitionEnd(this, m_controlledCamera);
 }
Beispiel #3
0
 internal CameraApi(ApiImplementation apiImplementation, CameraApiInternal cameraApiInternal)
 {
     m_apiImplementation = apiImplementation;
     m_inputHandler      = new CameraInputHandler();
     OnTransitionStart  += TransitionStarted;
     OnTransitionEnd    += TransitionEnded;
     m_cameraApiInternal = cameraApiInternal;
     m_cameraApiInternal.OnTransitionStartInternal += () => OnTransitionStart(this, GetControlledCamera());
     m_cameraApiInternal.OnTransitionEndInternal   += () => OnTransitionEnd(this, GetControlledCamera());
     IsCameraDrivenFromInput = true;
 }