protected void SetProgress(float value) { value = AbstractAsyncHandler.Clamp01(Math.Max(value, this.progress)); if (this.progress != value) { this.isModifyProgress = true; this.progress = value; } }
protected void SetSubProgress(float value) { //this.progress = AsyncLoader.Clamp01(AsyncLoader.Lerp(this.subProgressMin, this.subProgressMax, value)); this.SetProgress(AbstractAsyncHandler.Clamp01(this.subProgressMin + (this.subProgressRange * value))); }
protected void SetSubProgressRange(float next) { this.subProgressMin = AbstractAsyncHandler.Clamp01(this.progress); this.subProgressMax = AbstractAsyncHandler.Clamp01(Math.Max(next, this.progress)); this.subProgressRange = this.subProgressMax - this.subProgressMin; }