public void addStun(float duration)
{
if (canStun == true)
{
Effect newStun = new Effect(0, duration);
stuns.Add(newStun);
isStunned = true;
//The floating text should be replaced by a better graphical representation
floatText.GetComponent<TextMesh>().text = "Stunned!";
Instantiate(floatText, effectPosition, Quaternion.identity);
}
}