/// <summary> /// 同步玩家释放技能 /// </summary> private void SyncSkill(SkillDto dto) { if (dto == null) { return; } SkillMesg skillMesg = new SkillMesg(dto.Account, (SkillType)dto.SkillType, userGameObjDict[dto.Account]); Dispatch(AreaCode.SKILL, SkillEvents.SKILL_SYNC_SKILL, skillMesg); }
private void SyncSkill(SkillMesg skillMesg) { if (skillMesg == null) { return; } switch (skillMesg.Type) { case SkillType.FullPower: AnimationMesg mesg = new AnimationMesg(skillMesg.Account, "Speed", false, 1); Dispatch(AreaCode.ANIMATION, AnimationEvent.ANIMATION_SET_FLOAT, mesg); EffectMesg effectMesg = new EffectMesg(skillMesg.gameObject, EffectType.Skill_Fullpower); Dispatch(AreaCode.EFFECT, EffectsEvents.SHOW_EFFECTS, effectMesg); break; default: break; } }