IEnumerator End_Stun(Enemy_Attack_Crowd_Control enemy_Attack_Crowd_Control) { yield return(new WaitForSeconds(curr_Stun_Duration)); input_Enabled = true; enemy_Attack_Crowd_Control.have_Stunned = false; }
/// <summary> /// Called when the player is stunned, to remove the stun over time /// </summary> /// <param name="t"></param> /// <param name="enemy_Cc">The duration of the stun</param> public void End_Stun_Public(float t, Enemy_Attack_Crowd_Control enemy_Cc) { curr_Stun_Duration = t; StartCoroutine("End_Stun", enemy_Cc); }