Ejemplo n.º 1
0
 public void Ultimate(Text newText)
 {
     if (heroClass.getActionPoints().isReady() && heroClass.isAlive())
     {
         anim.SetTrigger(attackHash);
         Vector3 iconPosition = GameController.GetComponent <GameController>().getDragonOffset();
         PlayerController.GetComponent <PlayerController>().playEffect(ultimatePrefab, iconPosition, heroClass.getAttackTime());
         audioSource.PlayOneShot(ultimateSound);
         attackCommand(newText, " Ultimate", myUltimate, Action.Ultimate);
     }
 }