public string ProgressText(bool force = false) { string right = string.Empty; IHasProgress inner = _stream as IHasProgress; if (inner != null) { right = ", " + inner.ProgressText(force); } return(((force || _lastProg == null) ? fmtProg(Position, Length) : _lastProg) + right); }
void UpdateGUI() { if (hasProgress) { if (objectiveGUI is IHasProgress) { IHasProgress iHasProgress = objectiveGUI.GetComponent <IHasProgress>(); iHasProgress.SetProgressText(progressToDisplay); } } if (hasSubObjectives) { if (objectiveGUI is IHasSubObjectives) { IHasSubObjectives iHasSubObjectives = objectiveGUI.GetComponent <IHasSubObjectives>(); iHasSubObjectives.SetCurrentSubObjectiveText(subObjectives[currentSubObjective].description); } } }