Ejemplo n.º 1
0
 virtual public float Attack(GameObject target, AttackType attack)
 {
     if (animControl)
     {
         animControl.SetTrigger("Fire");
     }
     if (fireTransform)
     {
         StartCoroutine(DoAttack(attackDelayTime, fireTransform, target, attack));
         return(attack.attackCooldown + attackDelayTime);
     }
     else
     {
         return(damageController.DoAttack(gameObject, target, attack));
     }
 }