internal void SyncFaceDirection(float face_direction) { Msg_CRC_Face bd = new Msg_CRC_Face(); bd.face_direction = face_direction; SendMessage(bd); }
internal static void Execute(object msg, NetConnection conn, NetworkSystem networkSystem) { Msg_CRC_Face face_msg = msg as Msg_CRC_Face; if (null == face_msg) { return; } }
internal static void Execute(object msg, User user) { Msg_CRC_Face face_dir = msg as Msg_CRC_Face; if (null == face_dir) { return; } user.Info.GetMovementStateInfo().SetFaceDir(face_dir.face_direction); }
public void SyncFaceDirection(float face_direction) { if (Math.Abs(m_LastFaceDir - face_direction) <= 0.01) { return; } m_LastFaceDir = face_direction; Msg_CRC_Face bd = new Msg_CRC_Face(); bd.face_direction = face_direction; SendMessage(bd); }
internal static void Execute(object msg, RoomPeer peer) { Msg_CRC_Face face_msg = msg as Msg_CRC_Face; if (null == face_msg) { return; } Msg_CRC_Face bd = face_msg; bd.role_id = peer.RoleId; peer.BroadCastMsgToRoom(bd); }