still fails

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

View File

@ -29,9 +29,12 @@ public override void TearDown()
base.TearDown();
}
class SyncVarTest1NetworkBehaviour : NetworkBehaviour
class ParentNesting
{
[SyncVar] public int value;
public class SyncVarTest1NetworkBehaviour : NetworkBehaviour
{
[SyncVar] public int value;
}
}
// server should still broadcast ClientToServer components to everyone
@ -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;