Beispiel #1
0
 internal void SetNetworkedVarData(Stream stream)
 {
     for (int i = 0; i < childNetworkedBehaviours.Count; i++)
     {
         childNetworkedBehaviours[i].InitializeVars();
         NetworkedBehaviour.SetNetworkedVarData(childNetworkedBehaviours[i].networkedVarFields, stream);
     }
 }
Beispiel #2
0
 internal void SetNetworkedVarData(Stream stream)
 {
     using (PooledBitReader reader = PooledBitReader.Get(stream))
     {
         for (int i = 0; i < childNetworkedBehaviours.Count; i++)
         {
             childNetworkedBehaviours[i].NetworkedVarInit();
             NetworkedBehaviour.SetNetworkedVarData(childNetworkedBehaviours[i].networkedVarFields, reader, stream);
         }
     }
 }