Example #1
0
 public override bool Attack(DamageData damageData)
 {
     if (!ReadyToAttack)
     {
         OnNotAttacked?.Invoke();
         return(false);
     }
     Shoot(damageData);
     ShowVFXAttack();
     lastShoot = Time.time;
     OnAttacked?.Invoke();
     return(true);
 }
Example #2
0
    public override bool Attack(DamageData damageData)
    {
        if (!ReadyToAttack)
        {
            OnNotAttacked?.Invoke();
            return(false);
        }
        List <Vector2> list = FindPositionEnemys(Host.DistanceFindTarget);

        Shoot(damageData, list);
        m_lastTime_Attack = Time.time;
        OnAttacked?.Invoke();
        return(true);
    }