public void EventAttack() { if (AttackTarget) { AttackType.Attack(AttackTarget); timeAttack = durationAttack; } }