Exemple #1
0
 private IMovementDirection SetCameraDirection(CameraView cameraView)
 {
     this.cameraView = cameraView;
     return(cameraView switch
     {
         CameraView.AlwaysForward => new ThirdPersonCameraDirection(),
         _ => new ThirdPersonCameraDirection()
     });
Exemple #2
0
        private IMovementDirection setCameraDirection(CameraView cameraView)
        {
            this.cameraView = cameraView;
            switch (cameraView)
            {
            case CameraView.AlwaysForward:
                return(new ThirdPersonCameraDirection());

            default:
                return(new ThirdPersonCameraDirection());
            }
        }
Exemple #3
0
 public void changeMovementDirection(CameraView cameraView)
 {
     movementDirection = setCameraDirection(cameraView);
 }