Ejemplo n.º 1
0
 public CarInactivityRespawn(Settings settings, CarView view, ICarFacade facade, GameStateManager gameStateManager)
 {
     _settings         = settings;
     _view             = view;
     _facade           = facade;
     _gameStateManager = gameStateManager;
 }
Ejemplo n.º 2
0
        public void Construct(CarView view, RunnerDeathHandler deathHandler, RunnerCheckpointHandler checkpointHandler)
        {
            _view              = view;
            _deathHandler      = deathHandler;
            _checkpointHandler = checkpointHandler;

            _view.CarTransform.tag = "Runner";
        }
Ejemplo n.º 3
0
 public void Construct(
     CarView view,
     ChaserStateIdle idle, ChaserStateFollow follow, GameStateManager gameStateManager)
 {
     _gameStateManager = gameStateManager;
     _view             = view;
     _states           = new List <IChaserState>
     {
         idle, follow
     };
 }
Ejemplo n.º 4
0
 public CarDeathHandler(
     CarView view,
     AudioPlayer audioPlayer,
     Explosion.Factory explosionFactory,
     SignalBus signalBus)
 {
     SignalBus         = signalBus;
     _explosionFactory = explosionFactory;
     _audioPlayer      = audioPlayer;
     _view             = view;
 }
Ejemplo n.º 5
0
 public ChaserStateFollow(
     RunnerFacade runner,
     CarView view,
     AIInfo aiInfo,
     ChaserStateManager stateManager,
     CarInput input)
 {
     _stateManager = stateManager;
     _view         = view;
     _aiInfo       = aiInfo;
     _runner       = runner;
     _input        = input;
 }
Ejemplo n.º 6
0
 [Inject] public void Construct(CarView view, CarDeathHandler deathHandler, ChaserRegistry registry)
 {
     base.Construct(view, deathHandler);
     _registry             = registry;
     View.CarTransform.tag = "Chaser";
 }
Ejemplo n.º 7
0
 public ChaserStateIdle(CarView view, CarInput input)
 {
     _view  = view;
     _input = input;
 }
Ejemplo n.º 8
0
 public CarPhysics(CarView view, CarInput input)
 {
     _view  = view;
     _input = input;
 }
Ejemplo n.º 9
0
 public RespawnController(CarInput carInput, LevelInfo levelInfo, CarView carView)
 {
     _carInput  = carInput;
     _levelInfo = levelInfo;
     _carView   = carView;
 }
Ejemplo n.º 10
0
 public PlayerCameraHandler(CarView view, Camera cameraBehavior, LookatTarget lookatTarget)
 {
     cameraBehavior.Target = view;
     lookatTarget.Target   = view.CarTransform;
 }
Ejemplo n.º 11
0
 public ChaserDeathHandler(CarView view, AudioPlayer audioPlayer, Explosion.Factory explosionFactory, SignalBus signalBus, ChaserFacade facade) : base(view, audioPlayer, explosionFactory, signalBus)
 {
     _facade = facade;
 }
Ejemplo n.º 12
0
 [Inject] public virtual void Construct(CarView view, CarDeathHandler deathHandler)
 {
     View         = view;
     DeathHandler = deathHandler;
 }
Ejemplo n.º 13
0
 public RunnerDeathHandler(CarView view, AudioPlayer audioPlayer, Explosion.Factory explosionFactory, SignalBus signalBus) : base(view, audioPlayer, explosionFactory, signalBus)
 {
 }
Ejemplo n.º 14
0
 [Inject] public override void Construct(CarView view, CarDeathHandler deathHandler)
 {
     base.Construct(view, deathHandler);
 }