Пример #1
0
    protected override void OnUpdate(float factor, bool isFinished)
    {
        cachedTransform.localScale = from * (1f - factor) + to * factor;

        if (updateTable)
        {
            if (mTable == null)
            {
                mTable = NGUITools.FindInParents<NGUITable>(gameObject);
                if (mTable == null) { updateTable = false; return; }
            }
            mTable.repositionNow = true;
        }
    }
Пример #2
0
    override protected void OnUpdate(float factor, bool isFinished)
    {
        cachedTransform.localScale = from * (1f - factor) + to * factor;

        if (updateTable)
        {
            if (mTable == null)
            {
                mTable = NGUITools.FindInParents <NGUITable>(gameObject);
                if (mTable == null)
                {
                    updateTable = false; return;
                }
            }
            mTable.repositionNow = true;
        }
    }