예제 #1
0
        // Token: 0x06002AD6 RID: 10966 RVA: 0x0046FF08 File Offset: 0x0046E108
        public static uTweenScaleButton Begin(GameObject go, Vector3 from, Vector3 to, float duration = 1f, float delay = 0f)
        {
            uTweenScaleButton uTweenScaleButton = uTweener.Begin <uTweenScaleButton>(go, duration);

            uTweenScaleButton.from     = from;
            uTweenScaleButton.to       = to;
            uTweenScaleButton.duration = duration;
            uTweenScaleButton.delay    = delay;
            if (duration <= 0f)
            {
                uTweenScaleButton.Sample(1f, true);
                uTweenScaleButton.enabled = false;
            }
            return(uTweenScaleButton);
        }
예제 #2
0
        // Token: 0x06002A9A RID: 10906 RVA: 0x0046F630 File Offset: 0x0046D830
        private void Scale(Vector3 to, float spduration = 0f)
        {
            uTweenScaleButton uTweenScaleButton = uTweenScaleButton.Begin(this.tweenTarget.gameObject, this.tweenTarget.localScale, to, (spduration != 0f) ? spduration : this.duration, 0f);

            uTweenScaleButton.m_Handler = this;
        }