private void InstantiateClass() { movement = new Movement(playerRotationSpeed); Movement.mInstance = movement; baseLocomotion = new BaseLocomotion(movement); cameraFollow = new CameraFollow(followSpeed, yAxisOffset, baseLocomotion); cameraLookPlayer = new CameraLookPlayer(rotationSpeed); }
public CameraFollow(float followSpeed, float yAxisOffset, BaseLocomotion baseLocomotion) { this.followSpeed = followSpeed; this.yAxisOffset = yAxisOffset; this.baseLocomotion = baseLocomotion; }