public void OnSkillClick(object x) { if (skill != null) { skill.OffGreen(); } // DeactivateMoving = true; Debug.LogWarning("PSDA"); SkillButton button = (SkillButton)x; button.OnGreen(); Debug.LogWarning("PSDA1"); // skill1 = button; skill = button; skillBar.OnAllGreen(); Debug.LogWarning("PSDA2"); RightButtonSkill.OnGreen(); LeftButtonSkill.OnGreen(); Debug.LogWarning("PSDA3"); }