File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Runtime
NetworkVariable/Serialization Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using UnityEngine ;
2-
31namespace Unity . Netcode
42{
53 /// <summary>
@@ -50,7 +48,6 @@ internal interface INetworkMessage
5048 internal static class MessageDeliveryType < T > where T : INetworkMessage
5149 {
5250 internal static NetworkDelivery DefaultDelivery { get ; private set ; }
53- [ RuntimeInitializeOnLoadMethod ( RuntimeInitializeLoadType . SubsystemRegistration ) ]
5451 internal static void Initialize ( )
5552 {
5653 DefaultDelivery = MessageDelivery . GetDelivery ( typeof ( T ) ) ;
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using Unity . Netcode ;
4- using UnityEditor ;
54using UnityEngine ;
65
76internal static class MessageDelivery
Original file line number Diff line number Diff line change 33using Unity . Collections ;
44using Unity . Collections . LowLevel . Unsafe ;
55using Unity . Mathematics ;
6- using UnityEngine ;
76
87namespace Unity . Netcode
98{
@@ -264,15 +263,6 @@ private static class ListCache<T>
264263 private static List < T > s_AddedList = new List < T > ( ) ;
265264 private static List < T > s_RemovedList = new List < T > ( ) ;
266265 private static List < T > s_ChangedList = new List < T > ( ) ;
267- #if UNITY_EDITOR
268- [ RuntimeInitializeOnLoadMethod ( RuntimeInitializeLoadType . SubsystemRegistration ) ]
269- private static void ResetStaticsOnLoad ( )
270- {
271- s_AddedList = new List < T > ( ) ;
272- s_RemovedList = new List < T > ( ) ;
273- s_ChangedList = new List < T > ( ) ;
274- }
275- #endif
276266
277267 public static List < T > GetAddedList ( )
278268 {
You can’t perform that action at this time.
0 commit comments