示例#1
0
文件: DOPopup.cs 项目: rfHu/poker
 private void release()
 {
     if (PoolMan.IsSpawned(transform))
     {
         PoolMan.Despawn(transform);
     }
     else if (!PoolMan.Contains(transform))
     {
         Destroy(gameObject);
     }
 }
示例#2
0
    void OnDespawned()
    {
        this.Dispose();

        for (int i = AllinPlayersParent.childCount - 1; i > -1; i--)
        {
            var child = AllinPlayersParent.GetChild(i);
            if (PoolMan.Contains(child))
            {
                PoolMan.Despawn(child);
            }
        }
    }