Add more explanation

This commit is contained in:
Paul Pacheco 2018-08-01 20:25:23 -05:00
parent 7b59698f6e
commit 61e03e125f

View File

@ -495,6 +495,7 @@ internal bool OnSerializeAllSafely(NetworkBehaviour[] components, NetworkWriter
// if it is initializing, channel does not matter, they all go to reliable channel // if it is initializing, channel does not matter, they all go to reliable channel
// otherwise, only send the component if we are looking at the right channel. // otherwise, only send the component if we are looking at the right channel.
// note that if we are spawning, we expect all varibles to be dirty // note that if we are spawning, we expect all varibles to be dirty
// except for the owner bits if we are talking about observers
if (comp.IsDirty() && (comp.GetNetworkChannel() == channelId || initialState)) if (comp.IsDirty() && (comp.GetNetworkChannel() == channelId || initialState))
{ {
// set bit #i to 1 in dirty mask // set bit #i to 1 in dirty mask