mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
MirrorTest: set syncInterval=0 too
This commit is contained in:
parent
1a4cd6a250
commit
f6583f5d88
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user