// Token: 0x06004BCB RID: 19403 RVA: 0x001281B8 File Offset: 0x001263B8 public static global::TweenPosition Begin(GameObject go, float duration, Vector3 pos) { global::TweenPosition tweenPosition = global::UITweener.Begin <global::TweenPosition>(go, duration); tweenPosition.from = tweenPosition.position; tweenPosition.to = pos; return(tweenPosition); }
// Token: 0x06004930 RID: 18736 RVA: 0x001172C0 File Offset: 0x001154C0 private void OnDisable() { if (this.tweenTarget != null) { global::TweenPosition component = this.tweenTarget.GetComponent <global::TweenPosition>(); if (component != null) { component.position = this.mPos; component.enabled = false; } } }
static StackObject *Add_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); global::TweenPosition @item = (global::TweenPosition)typeof(global::TweenPosition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Collections.Generic.List <global::TweenPosition> instance_of_this_method = (System.Collections.Generic.List <global::TweenPosition>) typeof(System.Collections.Generic.List <global::TweenPosition>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Add(@item); return(__ret); }
static StackObject *Remove_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); global::TweenPosition @item = (global::TweenPosition)typeof(global::TweenPosition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Collections.Generic.List <global::TweenPosition> instance_of_this_method = (System.Collections.Generic.List <global::TweenPosition>) typeof(System.Collections.Generic.List <global::TweenPosition>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.Remove(@item); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
// Token: 0x060049C5 RID: 18885 RVA: 0x0011AFB4 File Offset: 0x001191B4 private void Highlight(global::UILabel lbl, bool instant) { if (this.mHighlight != null) { global::TweenPosition component = lbl.GetComponent <global::TweenPosition>(); if (component != null && component.enabled) { return; } this.mHighlightedLabel = lbl; global::UIAtlas.Sprite sprite = this.mHighlight.sprite; float num = sprite.inner.xMin - sprite.outer.xMin; float num2 = sprite.inner.yMin - sprite.outer.yMin; Vector3 vector = lbl.cachedTransform.localPosition + new Vector3(-num, num2, 0f); if (instant || !this.isAnimated) { this.mHighlight.cachedTransform.localPosition = vector; } else { global::TweenPosition.Begin(this.mHighlight.gameObject, 0.1f, vector).method = global::UITweener.Method.EaseOut; } } }