private void ButtonSkillOnClick(UISceneWidget eveneObj) { UICD uicd = eveneObj.GetComponent <UICD>(); uicd.isSelect = true; // Debug.Log("SkillManager.Instance.mSkillInfo[" + uicd.index + "].id:=" // + SkillManager.Instance.mSkillInfo[uicd.index].id); if (SkillManager.Instance.mSkillInfo[uicd.index].id != 0) { chInput.On_ButtonDown("Skill" + SkillManager.Instance.mSkillInfo[uicd.index].id); } }
private void ButtonSkillOnClick(UISceneWidget eventObj) { if (player.GetComponent <PlayerStatus>().SP < eventObj.GetComponent <UICD>().costSp) { return; } UICD uicd = eventObj.GetComponent <UICD>(); uicd.isSelect = true; if (SkillManager.Instance.mSkillInfo[uicd.index].id != 0) { Debug.Log("释放技能"); chInput.On_ButtonDown("Skill" + SkillManager.Instance.mSkillInfo[uicd.index].id); } }