Пример #1
0
    public static BulletPool GetObject()
    {
        if (pooledItems.Count == 0)
        {
            PopulatePool(100);
        }
        BulletPool obj = pooledItems[0];

        obj.MarkPolledToActive();
        obj.SetMat(0);
        return(obj);
    }