示例#1
0
 public void SetTween(Color c, Tween.tweenMode tm, float delta)
 {
     this.delta = (tm.Equals(Tween.tweenMode.FADE_IN)) ? -delta : delta;
     initialAlpha = (tm.Equals(Tween.tweenMode.FADE_IN)) ? 1f : 0f;
     this.c = c;
     solid.GetComponent<Image>().color = new Color(c.r, c.g, c.b, initialAlpha);
     active = true;
 }
示例#2
0
 public void SetTween(Color c, float initialAlpha, float amin, float amax, Tween.tweenMode tm, float delta)
 {
     this.delta = (tm.Equals(Tween.tweenMode.FADE_IN)) ? -delta : delta;
     this.initialAlpha = initialAlpha;
     this.c = c;
     solid.GetComponent<Image>().color = new Color(c.r, c.g, c.b, initialAlpha);
     this.amin = amin;
     this.amax = amax;
     active = true;
 }