public override void OnMsg(CPtcM2CNtf_CastSkill msg) { this.mainStage.AttackerId = msg.m_dwRoleId; this.mainStage.SkillId = msg.m_dwSkillId; Debug.Log("TargetBeastId:" + msg.m_dwTargetRoleId); if (msg.m_dwTargetRoleId != 0) { Debug.Log("Cast Add" + msg.m_dwTargetRoleId); this.mainStage.BeAttackerList.Add(msg.m_dwTargetRoleId); if (!this.mainStage.HpChangeInfo.ContainsKey(msg.m_dwTargetRoleId)) { this.mainStage.HpChangeInfo[msg.m_dwTargetRoleId] = new List <KeyValuePair <int, int> >(); } } else { //如果没有目标神兽 foreach (var beast in msg.m_oHurtList) { this.mainStage.BeAttackerList.Add(beast); if (!this.mainStage.HpChangeInfo.ContainsKey(beast)) { this.mainStage.HpChangeInfo[beast] = new List <KeyValuePair <int, int> >(); } } } this.mainStage.BeAttackPosList.Add(msg.m_oTargetPos); }
public virtual void OnMsg(CPtcM2CNtf_CastSkill msg) { }
public void OnMsg(CPtcM2CNtf_CastSkill msg) { this.NewShow(enumSequenceType.e_Sequence_Skill); this.GetCurrentShow().OnMsg(msg); }