コード例 #1
0
 public void SetTweenEnable(bool enable)
 {
     if (!object.ReferenceEquals(tween, null))
     {
         tween.set_enabled(enable);
     }
 }
コード例 #2
0
    public static TweenColor Begin(GameObject go, float duration, Color color)
    {
        TweenColor tweenColor = UITweener.Begin <TweenColor>(go, duration);

        tweenColor.from = tweenColor.value;
        tweenColor.to   = color;
        if (duration <= 0f)
        {
            tweenColor.Sample(1f, true);
            tweenColor.set_enabled(false);
        }
        return(tweenColor);
    }
コード例 #3
0
 protected virtual void OnDisable()
 {
     //IL_003e: Unknown result type (might be due to invalid IL or missing references)
     if (mInitDone && tweenTarget != null)
     {
         SetState(State.Normal, true);
         TweenColor component = tweenTarget.GetComponent <TweenColor>();
         if (component != null)
         {
             component.value = mDefaultColor;
             component.set_enabled(false);
         }
     }
 }
コード例 #4
0
 protected virtual void OnDisable()
 {
     if (this.mInitDone && this.tweenTarget != null)
     {
         if (!this.OnEnableAndOnDisableChangeState)
         {
             this.SetState(UIButtonColor.State.Normal, true);
         }
         TweenColor component = this.tweenTarget.GetComponent <TweenColor>();
         if (component != null)
         {
             component.value = this.mDefaultColor;
             component.set_enabled(false);
         }
     }
 }
コード例 #5
0
    public static TweenColor Begin(GameObject go, float duration, Color color)
    {
        //IL_000b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0010: Unknown result type (might be due to invalid IL or missing references)
        //IL_0016: Unknown result type (might be due to invalid IL or missing references)
        //IL_0017: Unknown result type (might be due to invalid IL or missing references)
        TweenColor tweenColor = UITweener.Begin <TweenColor>(go, duration, true);

        tweenColor.from = tweenColor.value;
        tweenColor.to   = color;
        if (duration <= 0f)
        {
            tweenColor.Sample(1f, true);
            tweenColor.set_enabled(false);
        }
        return(tweenColor);
    }