コード例 #1
0
    /// <summary>
    /// Start the tweening operation.
    /// </summary>

    static public UGUITweenScale Begin(GameObject go, float duration, Vector3 scale)
    {
        UGUITweenScale comp = UITweener.Begin <UGUITweenScale>(go, duration);

        comp.from = comp.value;
        comp.to   = scale;

        if (duration <= 0f)
        {
            comp.Sample(1f, true);
            comp.enabled = false;
        }
        return(comp);
    }
コード例 #2
0
 ///只给剧情编辑器使用
 public void CustomBegin()
 {
     UGUITweenScale comp = UITweener.Begin <UGUITweenScale>(this.gameObject, duration);
 }