mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkIdentity.IsMarkedForReset helper function to check reset state
This commit is contained in:
parent
8a05826ca4
commit
29fe487954
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user