public void OnFire(string buttonName) { switch (buttonName) { case "Skill1": chSkillSys.AttackUseSkill(11); break; case "Skill2": chSkillSys.AttackUseSkill(12); break; } }
private void OnSkillButtonDown(string arg0) { int id = 0; switch (arg0) { //case "BaseButton": // id = 1001; // ///Attack1(); // break; case "SkillButton01": id = 1002; //Attack2(); break; case "SkillButton02": id = 1003; //Attack3(); break; } skillSystem.AttackUseSkill(id); }