Ejemplo n.º 1
0
 void FixedUpdate()
 {
     if (player != null)
     {
         if (hit)
         {
             child = player.GetComponentsInChildren <Renderer>();
             spellBase.Stun(player, stunDuration, turnStone, anim);
             StartCoroutine(Wait(this.gameObject));
         }
     }
 }
Ejemplo n.º 2
0
 void FixedUpdate()
 {
     if (player != null)
     {
         // if colliding, give an amount of slow
         if (hit)
         {
             spellBase.Stun(player, stunDuration);
             anim.SetBool("Stunned", hit);
             StartCoroutine(Wait(this.gameObject));
         }
     }
 }