@@ -609,7 +609,7 @@ public void Shutdown()
609609 NetworkTickSystem = null ;
610610 }
611611
612- #if ! UNITY_2020_2_OR_LATER
612+ #if ! UNITY_2020_2_OR_NEWER
613613 NetworkProfiler . Stop ( ) ;
614614#endif
615615 IsListening = false ;
@@ -661,7 +661,7 @@ private void OnNetworkEarlyUpdate()
661661#endif
662662 var isLoopBack = false ;
663663
664- #if ! UNITY_2020_2_OR_LATER
664+ #if ! UNITY_2020_2_OR_NEWER
665665 NetworkProfiler . StartTick ( TickType . Receive ) ;
666666#endif
667667
@@ -682,7 +682,7 @@ private void OnNetworkEarlyUpdate()
682682
683683 m_LastReceiveTickTime = NetworkTime ;
684684
685- #if ! UNITY_2020_2_OR_LATER
685+ #if ! UNITY_2020_2_OR_NEWER
686686 NetworkProfiler . EndTick ( ) ;
687687#endif
688688
@@ -702,7 +702,7 @@ private void OnNetworkPreUpdate()
702702#if DEVELOPMENT_BUILD || UNITY_EDITOR
703703 s_EventTick . Begin ( ) ;
704704#endif
705- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
705+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
706706 NetworkProfiler . StartTick ( TickType . Event ) ;
707707#endif
708708
@@ -721,7 +721,7 @@ private void OnNetworkPreUpdate()
721721 {
722722 m_LastEventTickTime = NetworkTime ;
723723 }
724- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
724+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
725725 NetworkProfiler . EndTick ( ) ;
726726#endif
727727
@@ -732,12 +732,12 @@ private void OnNetworkPreUpdate()
732732
733733 if ( IsServer && NetworkConfig . EnableTimeResync && NetworkTime - m_LastTimeSyncTime >= NetworkConfig . TimeResyncInterval )
734734 {
735- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
735+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
736736 NetworkProfiler . StartTick ( TickType . Event ) ;
737737#endif
738738 SyncTime ( ) ;
739739 m_LastTimeSyncTime = NetworkTime ;
740- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
740+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
741741 NetworkProfiler . EndTick ( ) ;
742742#endif
743743 }
@@ -831,7 +831,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
831831#if DEVELOPMENT_BUILD || UNITY_EDITOR
832832 s_TransportConnect . Begin ( ) ;
833833#endif
834- #if ! UNITY_2020_2_OR_LATER
834+ #if ! UNITY_2020_2_OR_NEWER
835835 NetworkProfiler . StartEvent ( TickType . Receive , ( uint ) payload . Count , networkChannel , "TRANSPORT_CONNECT" ) ;
836836#endif
837837 if ( IsServer )
@@ -860,7 +860,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
860860 StartCoroutine ( ApprovalTimeout ( clientId ) ) ;
861861 }
862862
863- #if ! UNITY_2020_2_OR_LATER
863+ #if ! UNITY_2020_2_OR_NEWER
864864 NetworkProfiler . EndEvent ( ) ;
865865#endif
866866#if DEVELOPMENT_BUILD || UNITY_EDITOR
@@ -881,7 +881,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
881881#if DEVELOPMENT_BUILD || UNITY_EDITOR
882882 s_TransportDisconnect . Begin ( ) ;
883883#endif
884- #if ! UNITY_2020_2_OR_LATER
884+ #if ! UNITY_2020_2_OR_NEWER
885885 NetworkProfiler . StartEvent ( TickType . Receive , 0 , NetworkChannel . Internal , "TRANSPORT_DISCONNECT" ) ;
886886#endif
887887
@@ -899,7 +899,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
899899
900900 OnClientDisconnectCallback ? . Invoke ( clientId ) ;
901901
902- #if ! UNITY_2020_2_OR_LATER
902+ #if ! UNITY_2020_2_OR_NEWER
903903 NetworkProfiler . EndEvent ( ) ;
904904#endif
905905#if DEVELOPMENT_BUILD || UNITY_EDITOR
@@ -950,7 +950,7 @@ internal void HandleIncomingData(ulong clientId, NetworkChannel networkChannel,
950950
951951 uint headerByteSize = ( uint ) Arithmetic . VarIntSize ( messageType ) ;
952952
953- #if ! UNITY_2020_2_OR_LATER
953+ #if ! UNITY_2020_2_OR_NEWER
954954 NetworkProfiler . StartEvent ( TickType . Receive , ( uint ) ( data . Count - headerByteSize ) , networkChannel , messageType ) ;
955955#endif
956956
@@ -1082,7 +1082,7 @@ internal void HandleIncomingData(ulong clientId, NetworkChannel networkChannel,
10821082
10831083 #endregion
10841084
1085- #if ! UNITY_2020_2_OR_LATER
1085+ #if ! UNITY_2020_2_OR_NEWER
10861086 NetworkProfiler . EndEvent ( ) ;
10871087#endif
10881088 }
0 commit comments