示例#1
0
 public void FadeInOutSet(SimpleFade.FadeInOut set, Texture2D tex = null)
 {
     if (Object.op_Inequality((Object)tex, (Object)null))
     {
         this._Texture = tex;
     }
     this.FadeInOutStart(set);
     this.Init();
 }
示例#2
0
 private void FadeInOutStart(SimpleFade.FadeInOut set)
 {
     if (set != null)
     {
         this.fadeInOut = set;
     }
     if (this.fadeInOut == null)
     {
         return;
     }
     this._Fade     = set == null ? SimpleFade.Fade.Out : SimpleFade.Fade.In;
     this._Time     = set == null ? this.fadeInOut.outTime : this.fadeInOut.inTime;
     this._Color    = set == null ? this.fadeInOut.outColor : this.fadeInOut.inColor;
     this.fadeInOut = set;
     this.Init();
 }