public override bool Attack(DamageData damageData) { if (!ReadyToAttack) { OnNotAttacked?.Invoke(); return(false); } Shoot(damageData); ShowVFXAttack(); lastShoot = Time.time; OnAttacked?.Invoke(); return(true); }
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); }