Ejemplo n.º 1
0
        /** 技能 */
        public void ExeSkill(C_SyncSkill_0x822 msg)
        {
            SkillOperateData skillOperateData = War.sceneData.GetSkillOperateData(msg.uid);

            if (skillOperateData.isRoleSkill)
            {
                War.skillWarManager.DealSkillForPvp(WarService.To__S_SyncSkill_0x822(msg));
            }
            else
            {
                if (skillOperateData != null)
                {
                    skillOperateData.SetUse();
                }

                StartCoroutine(DelayPlaySkill(msg));
            }
        }
Ejemplo n.º 2
0
        IEnumerator DelayPlaySkill(C_SyncSkill_0x822 msg)
        {
            yield return(new WaitForSeconds(0.5f));

            War.skillWarManager.DealSkillForPvp(WarService.To__S_SyncSkill_0x822(msg));
        }