コード例 #1
0
 private void InstantiateClass()
 {
     movement           = new Movement(playerRotationSpeed);
     Movement.mInstance = movement;
     baseLocomotion     = new BaseLocomotion(movement);
     cameraFollow       = new CameraFollow(followSpeed, yAxisOffset, baseLocomotion);
     cameraLookPlayer   = new CameraLookPlayer(rotationSpeed);
 }
コード例 #2
0
 public CameraFollow(float followSpeed, float yAxisOffset, BaseLocomotion baseLocomotion)
 {
     this.followSpeed    = followSpeed;
     this.yAxisOffset    = yAxisOffset;
     this.baseLocomotion = baseLocomotion;
 }