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); }
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; }