Ejemplo n.º 1
0
 public void PushWallElement(WallElementType type, WallElementSize size, GameObject oldElement)
 {
     for (int i = 0, count = _poolList.Count; i < count; i++)
     {
         if (type.Equals(_poolList[i].Type) && size.Equals(_poolList[i].Size))
         {
             _poolList[i].Push(oldElement);
         }
     }
 }
Ejemplo n.º 2
0
        public GameObject PullWallElement(WallElementType type, WallElementSize size, Transform parent)
        {
            for (int i = 0, count = _poolList.Count; i < count; i++)
            {
                if (type.Equals(_poolList[i].Type) && size.Equals(_poolList[i].Size))
                {
                    return(_poolList[i].Pull(parent));
                }
            }

            return(null);
        }