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

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