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

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