@@ -781,36 +781,37 @@ public IEnumerator TestDictionaryCollections()
781781 }
782782
783783 m_CurrentKey = 1000 ;
784-
785- VerboseDebug ( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Values <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" ) ;
786- foreach ( var client in m_Clients )
784+ if ( m_EnableDebug )
787785 {
788- compDictionary = client . LocalClient . PlayerObject . GetComponent < DictionaryTestHelper > ( ) ;
789- compDictionary . InitValues ( ) ;
790- compDictionaryServer = m_PlayerNetworkObjects [ NetworkManager . ServerClientId ] [ client . LocalClientId ] . GetComponent < DictionaryTestHelper > ( ) ;
791- compDictionaryServer . InitValues ( ) ;
792- }
793- VerboseDebug ( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Check <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" ) ;
794- var count = 0 ;
795- while ( count < 3 )
796- {
797- m_InitializedStatus . Clear ( ) ;
786+ VerboseDebug ( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Values <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" ) ;
798787 foreach ( var client in m_Clients )
799788 {
800- yield return ValidateClients ( client , true ) ;
789+ compDictionary = client . LocalClient . PlayerObject . GetComponent < DictionaryTestHelper > ( ) ;
790+ compDictionary . InitValues ( ) ;
791+ compDictionaryServer = m_PlayerNetworkObjects [ NetworkManager . ServerClientId ] [ client . LocalClientId ] . GetComponent < DictionaryTestHelper > ( ) ;
792+ compDictionaryServer . InitValues ( ) ;
801793 }
802- if ( m_IsInitialized )
794+ VerboseDebug ( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Check <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" ) ;
795+ var count = 0 ;
796+ while ( count < 3 )
803797 {
804- break ;
798+ m_InitializedStatus . Clear ( ) ;
799+ foreach ( var client in m_Clients )
800+ {
801+ yield return ValidateClients ( client , true ) ;
802+ }
803+ if ( m_IsInitialized )
804+ {
805+ break ;
806+ }
807+ count ++ ;
808+ m_Stage = 0 ;
805809 }
806- count ++ ;
807- m_Stage = 0 ;
810+ Assert . IsTrue ( m_IsInitialized , $ "Not all clients synchronized properly!\n { m_InitializedStatus . ToString ( ) } ") ;
811+ VerboseDebug ( m_InitializedStatus . ToString ( ) ) ;
812+ VerboseDebug ( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BEGIN <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" ) ;
808813 }
809814
810- Assert . IsTrue ( m_IsInitialized , $ "Not all clients synchronized properly!\n { m_InitializedStatus . ToString ( ) } ") ;
811- VerboseDebug ( m_InitializedStatus . ToString ( ) ) ;
812-
813- VerboseDebug ( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BEGIN <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" ) ;
814815 foreach ( var client in m_Clients )
815816 {
816817 ///////////////////////////////////////////////////////////////////////////
0 commit comments