private void _DestroyText(UIFloatBar text)
    {
        if (pools.Count > _Instance.maxPoolCount)
        {
            GameObject.Destroy(text);
            return;
        }

        text.OnRecycle();
        text.transform.SetParent(poolTrans, false);
        pools.Enqueue(text);
    }
Ejemplo n.º 2
0
    // Token: 0x06000009 RID: 9 RVA: 0x00002380 File Offset: 0x00000580
    private void _DestroyText(UIFloatBar text)
    {
        bool flag = this.pools.Count > FloatBarManager._Instance.maxPoolCount;

        if (flag)
        {
            Object.Destroy(text);
        }
        else
        {
            text.OnRecycle();
            text.transform.SetParent(this.poolTrans, false);
            this.pools.Enqueue(text);
        }
    }