Beispiel #1
0
 /// <summary>
 /// Resets client and server side static fields to empty / round start values.
 /// If you have any static pools / caches / fields, add logic here to reset them to ensure they'll be properly
 /// cleared when a new round begins.
 /// </summary>
 private void ResetStaticsOnNewRound()
 {
     //reset pools
     Spawn._ClearPools();
     //clean up inventory system
     ItemSlot.Cleanup();
     //reset matrix init events
     NetworkedMatrix._ClearInitEvents();
 }