still fails

This commit is contained in:
mischa 2023-06-23 11:13:13 +08:00
parent ff5bd94c9c
commit d40ca81af1

View File

@ -29,10 +29,13 @@ public override void TearDown()
base.TearDown();
}
class SyncVarTest1NetworkBehaviour : NetworkBehaviour
class ParentNesting
{
public class SyncVarTest1NetworkBehaviour : NetworkBehaviour
{
[SyncVar] public int value;
}
}
// server should still broadcast ClientToServer components to everyone
// except the owner.
@ -40,7 +43,7 @@ class SyncVarTest1NetworkBehaviour : NetworkBehaviour
public void SerializeServer_ObserversMode_ClientToServer()
{
CreateNetworked(out GameObject _, out NetworkIdentity identity,
out SyncVarTest1NetworkBehaviour comp);
out ParentNesting.SyncVarTest1NetworkBehaviour comp);
// pretend to be owned
identity.isOwned = true;