This commit is contained in:
vis2k 2021-05-26 19:20:20 +08:00
parent 359184942f
commit 5c38f6f989

View File

@ -29,9 +29,8 @@ void OnDestroy()
onDestroyCalled?.Invoke(); onDestroyCalled?.Invoke();
} }
} }
/// <summary>
/// A network Behaviour that changes NetworkIdentity.spawned in OnDisable // A network Behaviour that changes NetworkIdentity.spawned in OnDisable
/// </summary>
public class BadBehaviour : MonoBehaviour public class BadBehaviour : MonoBehaviour
{ {
public void OnDisable() public void OnDisable()
@ -45,6 +44,7 @@ public void OnDisable()
NetworkIdentity.spawned.Add(id, netId); NetworkIdentity.spawned.Add(id, netId);
} }
} }
public class ClientSceneTests_DestroyAllClientObjects public class ClientSceneTests_DestroyAllClientObjects
{ {
public static readonly List<GameObject> _createdObjects = new List<GameObject>(); public static readonly List<GameObject> _createdObjects = new List<GameObject>();