public int OnNotifyHPInfo(NotifyHPInfo pMsg)
 {
     foreach (GSToGC.NotifyHPInfo.HPInfo info in pMsg.hpinfo)
     {
         UInt64 sGUID = info.guid;
         Player entity;
         if (PlayersManager.Instance.PlayerDic.TryGetValue(sGUID, out entity))
         {
             entity.SetHp((float)info.curhp);
             entity.SetHpMax((float)info.maxhp);
             //血条更新
             entity.UpdateHp(entity);
         }
     }
     //暂时不用
     //EventCenter.Broadcast((Int32)GameEventEnum.UserEvent_NotifyHPInfo, pMsg);
     return((Int32)ErrorCodeEnum.Normal);
 }
Beispiel #2
0
 void OnNotifyHPInfo(NotifyHPInfo pMsg)
 {
     Debug.Log("OnNotifyHPInfo");
 }