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