Exemple #1
0
        public void Init(IInputSystem input, IPlayerCamera camera)
        {
            Debug.Log($"{this} Init");
            _inputSystem  = input;
            _playerCamera = camera;

            SubscribeToEvents();
        }
Exemple #2
0
 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);
        }
Exemple #6
0
 public void SetPlayerCamera(IPlayerCamera playerCamera)
 {
     thisPlayerCamera = playerCamera;
 }
Exemple #7
0
 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();
        }