This commit is contained in:
Jakub Łangowski 2021-06-14 15:55:18 +02:00
parent 9b4d4f715d
commit 36baca2aa3
3 changed files with 0 additions and 10 deletions

View File

@ -36,15 +36,6 @@ namespace Logic
StartCoroutine(HandleCustomerSpawn(customerSpawnTime));
}
public void ClearTables()
{
foreach (CustomerTable table in customerTables)
{
Destroy(table.gameObject);
}
customerTables.Clear();
}
public void SpawnNewTable(int posX, int posZ, int posY = 0)
{
var itemObject = Instantiate(tablePrefab, mapGameObject.transform);

View File

@ -75,7 +75,6 @@ namespace Logic.GeneticAlgorithm
{
while (true)
{
CustomerTableManager.Instance.ClearTables();
foreach (NodeGen gene in genes)
{
Debug.Log($"X = {gene.PosX}, Y = {gene.PosY}");