Example #1
0
 public void CrossFadeColor(bool isFront, Color color, float time, bool ignoreTimeScale)
 {
     if (isFront)
     {
         this.front = new ADVFade.Fade(this.front.filter, color, time, ignoreTimeScale, true);
     }
     else
     {
         this.back = new ADVFade.Fade(this.back.filter, color, time, ignoreTimeScale, true);
     }
     this.isEnd = false;
 }
Example #2
0
 public void Initialize()
 {
     if (this.front == null)
     {
         this.frontIndex = ((Transform)((Graphic)this.filterFront).get_rectTransform()).GetSiblingIndex();
     }
     if (this.back == null)
     {
         this.backIndex = ((Transform)((Graphic)this.filterBack).get_rectTransform()).GetSiblingIndex();
     }
     ((Graphic)this.filterFront).set_color(this.initColor);
     this.front = new ADVFade.Fade(this.filterFront, this.initColor, 0.0f, true, true);
     ((Graphic)this.filterBack).set_color(this.initColor);
     this.back = new ADVFade.Fade(this.filterBack, this.initColor, 0.0f, true, true);
 }