void FixedUpdate() { if (player != null) { if (hit) { child = player.GetComponentsInChildren <Renderer>(); spellBase.Stun(player, stunDuration, turnStone, anim); StartCoroutine(Wait(this.gameObject)); } } }
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)); } } }