コード例 #1
0
ファイル: CameraApi.cs プロジェクト: huayyang/HackdayDemo
 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);
 }
コード例 #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, GetControlledCamera());
     m_cameraApiInternal.OnTransitionEndInternal   += () => OnTransitionEnd(this, GetControlledCamera());
     IsCameraDrivenFromInput = true;
 }