public bool IsPlayerCanUseSkill(int index) { if (RoleEnum.IsPlayer(mController.GetRoleType())) { bool canUse = false; if (index == 0) { canUse = true; } else { int skillLength = Globe.Heros()[0].node.skill_id.Length; SkillNode skillNode = GetSkillNodeByIndex(skillLength - 1 - (4 - index) % 4); canUse = !fightTouch.GetSkillBtn(index).isCD; } return(!fightTouch.isLock && !fightTouch.allSkillCD && canUse); } return(true); }
public void SetActionController(IActorController controller) { this.mActionController = controller; IsPlayer = RoleEnum.IsPlayer(controller.GetRoleType()); }