コード例 #1
0
 private void SetInitialValues(bool visible)
 {
     phase               = 0;
     messageToDisplay    = LoadingBarMessages.GetAllPhaseNames()[phase];
     isLoadingBarVisible = visible;
     progress            = 0;
 }
コード例 #2
0
 public void SetNextPhase()
 {
     if (isLoadingBarVisible == true && phase < LoadingBarMessages.GetAllPhaseNames().Length)
     {
         phase++;
         progress         = phase * 25;
         messageToDisplay = LoadingBarMessages.GetAllPhaseNames()[phase];
     }
     UpdateLoadingBar();
 }