@@ -609,7 +609,7 @@ public void Shutdown()
609
609
NetworkTickSystem = null ;
610
610
}
611
611
612
- #if ! UNITY_2020_2_OR_LATER
612
+ #if ! UNITY_2020_2_OR_NEWER
613
613
NetworkProfiler . Stop ( ) ;
614
614
#endif
615
615
IsListening = false ;
@@ -661,7 +661,7 @@ private void OnNetworkEarlyUpdate()
661
661
#endif
662
662
var isLoopBack = false ;
663
663
664
- #if ! UNITY_2020_2_OR_LATER
664
+ #if ! UNITY_2020_2_OR_NEWER
665
665
NetworkProfiler . StartTick ( TickType . Receive ) ;
666
666
#endif
667
667
@@ -682,7 +682,7 @@ private void OnNetworkEarlyUpdate()
682
682
683
683
m_LastReceiveTickTime = NetworkTime ;
684
684
685
- #if ! UNITY_2020_2_OR_LATER
685
+ #if ! UNITY_2020_2_OR_NEWER
686
686
NetworkProfiler . EndTick ( ) ;
687
687
#endif
688
688
@@ -702,7 +702,7 @@ private void OnNetworkPreUpdate()
702
702
#if DEVELOPMENT_BUILD || UNITY_EDITOR
703
703
s_EventTick . Begin ( ) ;
704
704
#endif
705
- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
705
+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
706
706
NetworkProfiler . StartTick ( TickType . Event ) ;
707
707
#endif
708
708
@@ -721,7 +721,7 @@ private void OnNetworkPreUpdate()
721
721
{
722
722
m_LastEventTickTime = NetworkTime ;
723
723
}
724
- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
724
+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
725
725
NetworkProfiler . EndTick ( ) ;
726
726
#endif
727
727
@@ -732,12 +732,12 @@ private void OnNetworkPreUpdate()
732
732
733
733
if ( IsServer && NetworkConfig . EnableTimeResync && NetworkTime - m_LastTimeSyncTime >= NetworkConfig . TimeResyncInterval )
734
734
{
735
- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
735
+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
736
736
NetworkProfiler . StartTick ( TickType . Event ) ;
737
737
#endif
738
738
SyncTime ( ) ;
739
739
m_LastTimeSyncTime = NetworkTime ;
740
- #if UNITY_EDITOR && ! UNITY_2020_2_OR_LATER
740
+ #if UNITY_EDITOR && ! UNITY_2020_2_OR_NEWER
741
741
NetworkProfiler . EndTick ( ) ;
742
742
#endif
743
743
}
@@ -831,7 +831,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
831
831
#if DEVELOPMENT_BUILD || UNITY_EDITOR
832
832
s_TransportConnect . Begin ( ) ;
833
833
#endif
834
- #if ! UNITY_2020_2_OR_LATER
834
+ #if ! UNITY_2020_2_OR_NEWER
835
835
NetworkProfiler . StartEvent ( TickType . Receive , ( uint ) payload . Count , networkChannel , "TRANSPORT_CONNECT" ) ;
836
836
#endif
837
837
if ( IsServer )
@@ -860,7 +860,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
860
860
StartCoroutine ( ApprovalTimeout ( clientId ) ) ;
861
861
}
862
862
863
- #if ! UNITY_2020_2_OR_LATER
863
+ #if ! UNITY_2020_2_OR_NEWER
864
864
NetworkProfiler . EndEvent ( ) ;
865
865
#endif
866
866
#if DEVELOPMENT_BUILD || UNITY_EDITOR
@@ -881,7 +881,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
881
881
#if DEVELOPMENT_BUILD || UNITY_EDITOR
882
882
s_TransportDisconnect . Begin ( ) ;
883
883
#endif
884
- #if ! UNITY_2020_2_OR_LATER
884
+ #if ! UNITY_2020_2_OR_NEWER
885
885
NetworkProfiler . StartEvent ( TickType . Receive , 0 , NetworkChannel . Internal , "TRANSPORT_DISCONNECT" ) ;
886
886
#endif
887
887
@@ -899,7 +899,7 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, N
899
899
900
900
OnClientDisconnectCallback ? . Invoke ( clientId ) ;
901
901
902
- #if ! UNITY_2020_2_OR_LATER
902
+ #if ! UNITY_2020_2_OR_NEWER
903
903
NetworkProfiler . EndEvent ( ) ;
904
904
#endif
905
905
#if DEVELOPMENT_BUILD || UNITY_EDITOR
@@ -950,7 +950,7 @@ internal void HandleIncomingData(ulong clientId, NetworkChannel networkChannel,
950
950
951
951
uint headerByteSize = ( uint ) Arithmetic . VarIntSize ( messageType ) ;
952
952
953
- #if ! UNITY_2020_2_OR_LATER
953
+ #if ! UNITY_2020_2_OR_NEWER
954
954
NetworkProfiler . StartEvent ( TickType . Receive , ( uint ) ( data . Count - headerByteSize ) , networkChannel , messageType ) ;
955
955
#endif
956
956
@@ -1082,7 +1082,7 @@ internal void HandleIncomingData(ulong clientId, NetworkChannel networkChannel,
1082
1082
1083
1083
#endregion
1084
1084
1085
- #if ! UNITY_2020_2_OR_LATER
1085
+ #if ! UNITY_2020_2_OR_NEWER
1086
1086
NetworkProfiler . EndEvent ( ) ;
1087
1087
#endif
1088
1088
}
0 commit comments