Exemple #1
0
 /// <summary>
 /// Plays animation when an attack is dodged and has eventDescription write it out
 /// </summary>
 /// <returns> IEnumerator cause animations </returns>
 public IEnumerator DisplayAttackDodged()
 {
     eventDescription.SetPMDodgeText(pm);
     isAnimating = true;
     if (EventManager.instance.partyPanel.isOpen == true)
     {
         yield return(StartCoroutine(pmdPartyPanel.PlayDodgedAnimation()));
     }
     else
     {
         yield return(new WaitForSeconds(0.75f / GameManager.instance.gsDataCurrent.animationSpeed));
     }
     isAnimating = false;
 }