Ejemplo n.º 1
0
        public static uTweenPosition Begin(GameObject go, Vector3 from, Vector3 to, float duration = 1f, float delay = 0f)
        {
            uTweenPosition comp = uTweener.Begin <uTweenPosition>(go, duration);

            comp.from     = from;
            comp.to       = to;
            comp.duration = duration;
            comp.delay    = delay;
            if (duration <= 0)
            {
                comp.Sample(1, true);
                comp.enabled = false;
            }
            return(comp);
        }
Ejemplo n.º 2
0
        // Token: 0x06002ABB RID: 10939 RVA: 0x0046FBA4 File Offset: 0x0046DDA4
        public static uTweenPosition Begin(GameObject go, Vector3 from, Vector3 to, float duration = 1f, float delay = 0f)
        {
            uTweenPosition uTweenPosition = uTweener.Begin <uTweenPosition>(go, duration);

            uTweenPosition.from     = from;
            uTweenPosition.to       = to;
            uTweenPosition.duration = duration;
            uTweenPosition.delay    = delay;
            if (duration <= 0f)
            {
                uTweenPosition.Sample(1f, true);
                uTweenPosition.enabled = false;
            }
            return(uTweenPosition);
        }