public void UpdateLook() { if (mLookLocalPlayer) { var look_pack = new C2SNwarLook(); look_pack.uuids.Add(Game.Instance.LocalPlayerID.obj_idx); NetClient.GetCrossClient().SendData <C2SNwarLook>(NetMsg.MSG_NWAR_LOOK, look_pack); mLookLocalPlayer = false; } WildPlayerInfo.SendLookImpl(); }
public static void SendLookImpl() { if (WaittingLookList.Count > 0) { var pack = new C2SNwarLook(); foreach (var uuid in WaittingLookList) { pack.uuids.Add(uuid); } NetClient.GetCrossClient().SendData <C2SNwarLook>(NetMsg.MSG_NWAR_LOOK, pack); WaittingLookList.Clear(); } }