public void sendtAction() { if (activated == null) // no activated object - do nothing { return; } if (act_cd > 0) // action on cooldown - do nothing { return; } act_cd = MAX_ACT_CD; activated.GetAction(); }