void attacks() { if (Sinput.GetButtonDown("BasicAttack", slot)) { warrior.startBasicAttack(); } if (Sinput.GetButton("SpecialAttack", slot)) { warrior.startSpecialAttack(); } if (Sinput.GetButtonUp("SpecialAttack", slot)) { warrior.endSpecialAttack(); } }