From d40ca81af18f97e604d7f1b8584e6c26d2286f46 Mon Sep 17 00:00:00 2001 From: mischa Date: Fri, 23 Jun 2023 11:13:13 +0800 Subject: [PATCH] still fails --- .../NetworkIdentity/NetworkIdentitySerializationTests.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Tests/Editor/NetworkIdentity/NetworkIdentitySerializationTests.cs b/Assets/Mirror/Tests/Editor/NetworkIdentity/NetworkIdentitySerializationTests.cs index 3431d9a6d..4b74b3edc 100644 --- a/Assets/Mirror/Tests/Editor/NetworkIdentity/NetworkIdentitySerializationTests.cs +++ b/Assets/Mirror/Tests/Editor/NetworkIdentity/NetworkIdentitySerializationTests.cs @@ -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;