public void CmdActivateSkill(int id) { PlayerCombat combat = serverPlayer.GetComponent <PlayerCombat>(); if (combat.TryLockAction()) { combat.ActivateSkill(id); combat.UnlockAction(); } }