示例#1
0
        // Token: 0x06002AAE RID: 10926 RVA: 0x0046F940 File Offset: 0x0046DB40
        public static uTweenColor Begin(GameObject go, float duration, float delay, Color from, Color to)
        {
            uTweenColor uTweenColor = uTweener.Begin <uTweenColor>(go, duration);

            uTweenColor.from  = from;
            uTweenColor.to    = to;
            uTweenColor.delay = delay;
            if (duration <= 0f)
            {
                uTweenColor.Sample(1f, true);
                uTweenColor.enabled = false;
            }
            return(uTweenColor);
        }
示例#2
0
        public static uTweenColor Begin(GameObject go, float duration, float delay, Color from, Color to)
        {
            uTweenColor comp = uTweener.Begin <uTweenColor>(go, duration);

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

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