public void Init(IInputSystem input, IPlayerCamera camera) { Debug.Log($"{this} Init"); _inputSystem = input; _playerCamera = camera; SubscribeToEvents(); }
public ConstArg( IPlayerCamera playerCamera, float smoothCoefficient, IProcessManager processManager ) : base( processManager ) { thisPlayerCamera = playerCamera; thisSmoothCoefficient = smoothCoefficient; }
public ISmoothZoomProcess CreateSmoothZoomProcess( IPlayerCamera playerCamera, float smoothCoefficient ) { SmoothZoomProcess.IConstArg arg = new SmoothZoomProcess.ConstArg( playerCamera, smoothCoefficient, thisProcessManager ); return(new SmoothZoomProcess(arg)); }
public InputSystem(IPlayerCamera camera, NewWalkTargetSignal walkTargetSignal, KeyPressedSignal keyPressedSignal, TargetAquiredSignal targetAquiredSignal, GameModel model ) { _playerCamera = camera; _walkTargetSignal = walkTargetSignal; _keyPressedSignal = keyPressedSignal; _targetAquiredSignal = targetAquiredSignal; _model = model; }
public override void SetUpReference() { IPlayerCamera playerCamera = playerCameraAdaptor.GetPlayerCamera(); thisInputManager.SetPlayerCamera(playerCamera); ICoreGameplayInputScroller scroller = inputScrollerAdaptor.GetInputScroller(); thisInputManager.SetInputScroller(scroller); IShootingManager shootingManager = shootingManagerAdaptor.GetShootingManager(); thisInputManager.SetShootingManager(shootingManager); ISmoothFollower follower = cameraPivotSmoothFollowerAdaptor.GetSmoothFollower(); thisInputManager.SetCameraPivotSmoothFollower(follower); }
public void SetPlayerCamera(IPlayerCamera playerCamera) { thisPlayerCamera = playerCamera; }
void Start() { playerCamera = GetComponentInChildren <IPlayerCamera>(); }
/// <summary> /// Initialize /// </summary> public void Init(IPlayerCamera playerCamera) { Debug.Log($"Camera initialized on {this}"); _playerCamera = playerCamera; }
void StartSmoothZoom() { IPlayerCamera playerCamera = playerCameraAdaptor.GetPlayerCamera(); playerCamera.StartSmoothZoom(); }