예제 #1
0
        // Token: 0x06002AE1 RID: 10977 RVA: 0x004700FC File Offset: 0x0046E2FC
        public static uTweenSlider Begin(Slider slider, float duration, float delay, float from, float to)
        {
            uTweenSlider uTweenSlider = uTweener.Begin <uTweenSlider>(slider.gameObject, duration);

            uTweenSlider.from  = from;
            uTweenSlider.to    = to;
            uTweenSlider.delay = delay;
            if (duration <= 0f)
            {
                uTweenSlider.Sample(1f, true);
                uTweenSlider.enabled = false;
            }
            return(uTweenSlider);
        }
예제 #2
0
파일: uTweenSlider.cs 프로젝트: Xnovae/ET
        public static uTweenSlider Begin(Slider slider, float duration, float delay, float from, float to)
        {
            uTweenSlider comp = uTweener.Begin <uTweenSlider>(slider.gameObject, duration);

            comp.from  = from;
            comp.to    = to;
            comp.delay = delay;

            if (duration <= 0)
            {
                comp.Sample(1, true);
                comp.enabled = false;
            }
            return(comp);
        }