IEnumerator WaitForInit()
 {
     while (true)
     {
         if (ui.GetPrivateField <bool>("initialized") == true)
         {
             ReflectionUtil.CopyComponent(GameObject.Find("SettingsUI").GetComponent <SettingsUI>(), typeof(SettingsUI), typeof(SettingsUI), uiGO);
             ui = uiGO.GetComponent <SettingsUI>();
             ModifySettings();
             break;
         }
         yield return(new WaitForSeconds(0.1f));
     }
 }