コード例 #1
0
 private void Update()
 {
     if (QSBCore.IsInMultiplayer &&
         (LoadManager.GetLoadingScene() == OWScene.SolarSystem || LoadManager.GetLoadingScene() == OWScene.EyeOfTheUniverse) &&
         _loadingText != null)
     {
         var num = LoadManager.GetAsyncLoadProgress();
         num = num < 0.1f
                                 ? Mathf.InverseLerp(0f, 0.1f, num) * 0.9f
                                 : 0.9f + (Mathf.InverseLerp(0.1f, 1f, num) * 0.1f);
         ResetStringBuilder();
         _nowLoadingSB.Append(UITextLibrary.GetString(UITextType.LoadingMessage));
         _nowLoadingSB.Append(num.ToString("P0"));
         _loadingText.text = _nowLoadingSB.ToString();
     }
 }