Beispiel #1
0
 public void CollectTerranToPool(TileBase collect)
 {
     ActivatedTiles.Remove(collect);
     if (TilePool[collect.GetTileType()].Count >= 2)
     {
         Destroy(collect.gameObject);
         return;
     }
     else
     {
         collect.gameObject.SetActive(false);
         collect.transform.SetParent(transform);
         TilePool[collect.GetTileType()].Enqueue(collect);
     }
 }