public void OnPress() { PlayerSkillController skillController = MyNetwork.instance.localPlayer.GetComponent <PlayerSkillController>(); if (skillController.CanPerformSkill(attachedSkill)) { attachedSkill.ExecuteSkill(); GameModeManager.instance.GetComponent <AudioPlayer>().PlayOnceTrack(3, 0.1f); } else { // Show text on screen "Not enough moves" Debug.Log("Cannot perform: " + attachedSkill.skillName); } }