コード例 #1
0
 protected void SetProgress(float value)
 {
     value = AbstractAsyncHandler.Clamp01(Math.Max(value, this.progress));
     if (this.progress != value)
     {
         this.isModifyProgress = true;
         this.progress         = value;
     }
 }
コード例 #2
0
 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)));
 }
コード例 #3
0
 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;
 }