Exemple #1
0
        public void Throw()
        {
            if (!_takeObject.IsObjectTaken)
            {
                if (_grenades.Count != 0)
                {
                    var grenade = _grenades.Get();

                    grenade.Transform.gameObject.SetActive(true);
                    SetPosition(grenade);
                    ThrowGrenade(grenade);

                    _addedGrenades.Add(grenade);
                    _timers.Add(new UpTimer(0, grenade.Duration));
                }
            }
        }
Exemple #2
0
 public void Throw()
 {
     _bonus         = _bonusThrowPull.Get();
     _isBonusFlying = true;
 }
Exemple #3
0
 public void Set()
 {
     SetPosition(_minePull.Get());
 }