Ejemplo n.º 1
0
 public void Add(SlingTowerBase slingTowerBase)
 {
     if(slingTowerBase == null)
         return;
     
     slingTowerBase.ID = _index++;
     _slingTowerBases.Add(slingTowerBase);
 }
        public CarSlingController(CarDirectionController carDirectionController, SlingManager slingManager,
                                  PlayerView playerView)
        {
            _slingManager           = slingManager;
            _carDirectionController = carDirectionController;
            _playerView             = playerView;

            LevelEventBus.SubscribeEvent(LevelEventType.STARTED, () =>
            {
                _targetSling      = null;
                _targetSlingIndex = 0;
            });
        }
 public bool CheckAvailableSling()
 {
     _targetSling = _slingManager.GetSlingByID(_targetSlingIndex);
     return(_targetSling != null);
 }