示例#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();
 }