Made windowspawner keep track of spawned window count

This commit is contained in:
2026-01-19 20:22:35 +00:00
parent e636e28d3a
commit 6c3e7ca111
6 changed files with 18 additions and 18 deletions

View File

@@ -12,10 +12,5 @@ namespace InterfaceOff
Components.InfoText.text = advert.Name;
Components.WindowImage.color = new Color(1, 1, 1, 1);
}
public override void OnWindowCloseButtonClicked()
{
Destroy(gameObject);
}
}
}

View File

@@ -63,7 +63,7 @@ namespace InterfaceOff
{
if (m_TilesRotatedCorrectly == 4)
{
Destroy(gameObject);
DestroyWindow();
}
}
}

View File

@@ -16,10 +16,5 @@ namespace InterfaceOff
float angle = Random.Range(0, Mathf.PI * 2);
Velocity = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * 100;
}
public override void OnWindowCloseButtonClicked()
{
Destroy(gameObject);
}
}
}