Пример #1
0
        public GrenadeThrow(IPull <IGrenadeModel> grenades, Transform throwPoint, ITakeObject takeObject)
        {
            _grenades = grenades;

            _throwPoint = throwPoint;

            _takeObject = takeObject;

            _addedGrenades = new List <IGrenadeModel>();
            _timers        = new List <UpTimer>();
        }
Пример #2
0
 public CharacterModel(Transform transform, Transform throwGrenadePosition, Transform setMinePosition,
                       IHealthModel healthModel, ISpeedModel speedModel, float takeRange)
 {
     Transform            = transform;
     ThrowGrenadePosition = throwGrenadePosition;
     SetMinePosition      = setMinePosition;
     HealthModel          = healthModel;
     SpeedModel           = speedModel;
     TakeRange            = takeRange;
     TakeObject           = new TakeObject(throwGrenadePosition, takeRange);
 }
Пример #3
0
 public TakeExecute(ICharacterModel character, Transform takePoint)
 {
     _takeObject = new TakeObject(takePoint, character.TakeRange);
 }
Пример #4
0
 public TakeObjectInput(ITakeObject takeObject)
 {
     _takeObjectInput = new PCUserInputTake();
     _takeObject      = takeObject;
 }
Пример #5
0
 public GrenadeInput(IPull <IGrenadeModel> grenades, Transform throwGrenadePosition,
                     ITakeObject takeObject)
 {
     _grenadeThrow = new GrenadeThrow(grenades, throwGrenadePosition, takeObject);
     _grenadeInput = new PCUserInputGrenade();
 }