| | 1 | | using System; |
| | 2 | | using Cinemachine; |
| | 3 | | using DCL.Camera; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCL.Camera |
| | 7 | | { |
| | 8 | | public class CameraStateBase : MonoBehaviour |
| | 9 | | { |
| | 10 | | public CinemachineVirtualCameraBase defaultVirtualCamera; |
| | 11 | |
|
| | 12 | | protected new UnityEngine.Camera camera; |
| | 13 | | protected Transform cameraTransform; |
| | 14 | | public CameraMode.ModeId cameraModeId; |
| | 15 | |
|
| | 16 | | public virtual void Initialize(UnityEngine.Camera camera) |
| | 17 | | { |
| 1791 | 18 | | this.camera = camera; |
| 1791 | 19 | | this.cameraTransform = this.camera.transform; |
| 1791 | 20 | | gameObject.SetActive(false); |
| 1791 | 21 | | } |
| | 22 | |
|
| | 23 | | public virtual void Cleanup() |
| | 24 | | { |
| 1194 | 25 | | } |
| | 26 | |
|
| 1198 | 27 | | public virtual void OnSelect() { gameObject.SetActive(true); } |
| | 28 | |
|
| 1198 | 29 | | public virtual void OnUnselect() { gameObject.SetActive(false); } |
| | 30 | |
|
| 0 | 31 | | public virtual void OnUpdate() { } |
| | 32 | |
|
| 0 | 33 | | public virtual void OnSetRotation(CameraController.SetRotationPayload payload) { } |
| | 34 | |
|
| 0 | 35 | | public virtual Vector3 OnGetRotation() { return Vector3.zero; } |
| | 36 | |
|
| 0 | 37 | | public virtual void OnBlock(bool blocked) { } |
| | 38 | | } |
| | 39 | | } |