static public void ReadReference(NetworkReader reader, SyncListBool syncList) { ushort count = reader.ReadUInt16(); syncList.Clear(); for (ushort i = 0; i < count; i++) { syncList.AddInternal(reader.ReadBoolean()); } }
static public SyncListBool ReadInstance(NetworkReader reader) { ushort count = reader.ReadUInt16(); var result = new SyncListBool(); for (ushort i = 0; i < count; i++) { result.AddInternal(reader.ReadBoolean()); } return(result); }