예제 #1
0
 private void CameraManager_PositionChanged(PoolCamera camera)
 {
     if (CameraManager.State is FocusCameraState)
     {
         Game.Player.transform.position = camera.transform.parent.position;
         Game.Player.transform.rotation = camera.transform.parent.rotation;
     }
 }
예제 #2
0
        private void Camera_Updated(PoolCamera value)
        {
            if (!UIUtil.IsMouseOverUI())
            {
                FocusCameraDirectionRule.Execute();
            }

            //Camera.transform.LookAt(FocusedGameObject.transform);
            Camera.transform.localRotation             = Quaternion.Euler(23.445f, 0.0f, 0.0f);
            Camera.transform.parent.transform.position = FocusedGameObject.transform.position;
            OnCameraPositionChanged();
        }
예제 #3
0
 public FocusCameraState(PoolCamera camera, GameObject focusedGameObject) : base(camera)
 {
     FocusedGameObject = focusedGameObject;
 }
예제 #4
0
 public FocusCameraState(PoolCamera camera, GameObject focusedGameObject, Quaternion initialRotation) : this(camera, focusedGameObject)
 {
     InitialRotation = initialRotation;
 }
예제 #5
0
 public TopCameraState(PoolCamera camera) : base(camera)
 {
 }
예제 #6
0
 public ReplayCameraState(PoolCamera camera) : base(camera)
 {
 }
예제 #7
0
 public TournamentCameraState(PoolCamera camera) : base(camera)
 {
 }
예제 #8
0
 public ConstantCameraState(PoolCamera camera) : base(camera)
 {
 }
예제 #9
0
 public InitialCameraState(PoolCamera camera) : base(camera)
 {
 }
예제 #10
0
 public BaseCameraState(PoolCamera camera)
 {
     Camera = camera;
 }
예제 #11
0
 private void State_CameraPositionChanged(PoolCamera camera)
 {
     PositionChanged?.Invoke(camera);
 }