Exemple #1
0
 public static void WriteInstance(NetworkWriter writer, SyncListString items)
 {
     writer.Write((ushort)items.Count);
     for (int i = 0; i < items.Count; i++)
     {
         writer.Write(items[i]);
     }
 }
Exemple #2
0
        public static void ReadReference(NetworkReader reader, SyncListString syncList)
        {
            ushort count = reader.ReadUInt16();

            syncList.Clear();
            for (ushort i = 0; i < count; i++)
            {
                syncList.AddInternal(reader.ReadString());
            }
        }