NetworkIdentity.IsMarkedForReset helper function to check reset state

This commit is contained in:
vis2k 2020-02-26 17:39:57 +01:00
parent 8a05826ca4
commit 29fe487954

View File

@ -1146,6 +1146,9 @@ public bool AssignClientAuthority(NetworkConnection conn)
// of invoking reset after OnDestroy is called.
internal void MarkForReset() => reset = true;
// check if it was marked for reset
internal bool IsMarkedForReset() => reset;
// if we have marked an identity for reset we do the actual reset.
internal void Reset()
{