Beispiel #1
0
    /// <summary>
    /// Start the tweening operation.
    /// </summary>

    static public TweenRectUI Begin(GameObject go, float duration, Rect pos, bool worldSpace)
    {
        TweenRectUI comp = Begin(go, duration, pos);

        comp.worldSpace = worldSpace;

        return(comp);
    }
Beispiel #2
0
    /// <summary>
    /// Start the tweening operation.
    /// </summary>

    static public TweenRectUI Begin(GameObject go, float duration, Rect pos)
    {
        TweenRectUI comp = UITweener.Begin <TweenRectUI>(go, duration);

        comp.from = comp.value;
        comp.to   = pos;

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