This commit is contained in:
vis2k 2022-01-25 01:14:19 +08:00
parent 212ec448fb
commit 7a1c5774a3

View File

@ -146,7 +146,7 @@ public struct DavidStruct
{
public int Value;
}
class DavidHook_Ldflda : NetworkBehaviour
class DavidHookComponent : NetworkBehaviour
{
[SyncVar] public DavidStruct syncvar;
@ -510,8 +510,8 @@ public void ImerHook_Ldflda_Uses_Correct_SyncVar(bool intialState)
public void DavidHook_SetSyncVarStructsValue(bool intialState)
{
CreateNetworkedAndSpawn(
out _, out _, out DavidHook_Ldflda serverObject,
out _, out _, out DavidHook_Ldflda clientObject);
out _, out _, out DavidHookComponent serverObject,
out _, out _, out DavidHookComponent clientObject);
// change it on server.
// should not throw.