MirrorTest: set syncInterval=0 too

This commit is contained in:
vis2k 2021-05-19 19:58:20 +08:00
parent 1a4cd6a250
commit f6583f5d88

View File

@ -52,6 +52,9 @@ protected void CreateNetworked<T>(out GameObject go, out NetworkIdentity identit
go = new GameObject();
identity = go.AddComponent<NetworkIdentity>();
component = go.AddComponent<T>();
// always set syncinterval = 0 for immediate testing
component.syncInterval = 0;
// track
instantiated.Add(go);
}
@ -65,6 +68,10 @@ protected void CreateNetworked<T, U>(out GameObject go, out NetworkIdentity iden
identity = go.AddComponent<NetworkIdentity>();
componentA = go.AddComponent<T>();
componentB = go.AddComponent<U>();
// always set syncinterval = 0 for immediate testing
componentA.syncInterval = 0;
componentB.syncInterval = 0;
// track
instantiated.Add(go);
}