@@ -324,13 +324,17 @@ private void Init(bool server)
324
324
if ( RpcQueueContainer != null )
325
325
{
326
326
UnityEngine . Debug . LogError ( "Init was invoked, but rpcQueueContainer was already initialized! (destroying previous instance)" ) ;
327
- RpcQueueContainer . Dispose ( ) ;
327
+ RpcQueueContainer . Shutdown ( ) ;
328
328
RpcQueueContainer = null ;
329
329
}
330
330
331
331
//The RpcQueueContainer must be initialized within the Init method ONLY
332
332
//It should ONLY be shutdown and destroyed in the Shutdown method (other than just above)
333
- RpcQueueContainer = new RpcQueueContainer ( this ) ;
333
+ RpcQueueContainer = new RpcQueueContainer ( false ) ;
334
+
335
+ //Note: Since frame history is not being used, this is set to 0
336
+ //To test frame history, increase the number to (n) where n > 0
337
+ RpcQueueContainer . Initialize ( 0 ) ;
334
338
335
339
// Register INetworkUpdateSystem (always register this after rpcQueueContainer has been instantiated)
336
340
this . RegisterNetworkUpdate ( NetworkUpdateStage . EarlyUpdate ) ;
@@ -595,7 +599,7 @@ public void Shutdown()
595
599
//If an instance of the RpcQueueContainer is still around, then shut it down and remove the reference
596
600
if ( RpcQueueContainer != null )
597
601
{
598
- RpcQueueContainer . Dispose ( ) ;
602
+ RpcQueueContainer . Shutdown ( ) ;
599
603
RpcQueueContainer = null ;
600
604
}
601
605
0 commit comments