Exemplo n.º 1
0
 public LuaObjectPool()
 {
     this.list = new List <LuaObjectPool.PoolNode>(1024);
     this.head = new LuaObjectPool.PoolNode(0, null);
     this.list.Add(this.head);
     this.list.Add(new LuaObjectPool.PoolNode(1, null));
     this.count = this.list.get_Count();
 }
Exemplo n.º 2
0
 public void Clear()
 {
     this.list.Clear();
     this.head  = null;
     this.count = 0;
 }