Ejemplo n.º 1
0
 private void OnDisable()
 {
     if (this.mStarted && this.tweenTarget != null)
     {
         TweenRotation component = this.tweenTarget.GetComponent <TweenRotation>();
         if (component != null)
         {
             component.value = this.mRot;
             component.set_enabled(false);
         }
     }
 }
Ejemplo n.º 2
0
 private void OnDisable()
 {
     //IL_0036: Unknown result type (might be due to invalid IL or missing references)
     if (mStarted && tweenTarget != null)
     {
         TweenRotation component = tweenTarget.GetComponent <TweenRotation>();
         if (component != null)
         {
             component.value = mRot;
             component.set_enabled(false);
         }
     }
 }
Ejemplo n.º 3
0
    public static TweenRotation Begin(GameObject go, float duration, Quaternion rot)
    {
        TweenRotation tweenRotation = UITweener.Begin <TweenRotation>(go, duration);

        tweenRotation.from = tweenRotation.value.get_eulerAngles();
        tweenRotation.to   = rot.get_eulerAngles();
        if (duration <= 0f)
        {
            tweenRotation.Sample(1f, true);
            tweenRotation.set_enabled(false);
        }
        return(tweenRotation);
    }
 public void Exit()
 {
     if (!this.isEnter)
     {
         return;
     }
     this.isEnter = false;
     this.tp.PlayReverse();
     this.tp.SetOnFinished(delegate
     {
         TweenRotation[] array = this.tweenRots;
         for (int i = 0; i < array.Length; i++)
         {
             TweenRotation tweenRotation = array[i];
             tweenRotation.set_enabled(false);
         }
         SingletonMonoBehaviour <UIShortCutMenu> .Instance.isCloseAnimNow = false;
         SingletonMonoBehaviour <UIShortCutMenu> .Instance.SetActiveChildren(false);
     });
 }
Ejemplo n.º 5
0
    public static TweenRotation Begin(GameObject go, float duration, Quaternion rot)
    {
        //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_0013: Unknown result type (might be due to invalid IL or missing references)
        //IL_0018: Unknown result type (might be due to invalid IL or missing references)
        //IL_0020: Unknown result type (might be due to invalid IL or missing references)
        //IL_0025: Unknown result type (might be due to invalid IL or missing references)
        TweenRotation tweenRotation  = UITweener.Begin <TweenRotation>(go, duration, true);
        TweenRotation tweenRotation2 = tweenRotation;
        Quaternion    value          = tweenRotation.value;

        tweenRotation2.from = value.get_eulerAngles();
        tweenRotation.to    = rot.get_eulerAngles();
        if (duration <= 0f)
        {
            tweenRotation.Sample(1f, true);
            tweenRotation.set_enabled(false);
        }
        return(tweenRotation);
    }