add: you can't deploy to destroyed levels

add: levels now have bulletsGenerate
update: levels have different factories
This commit is contained in:
KOSMOGOR
2025-04-30 20:53:58 +03:00
parent 68cf00fd21
commit 85dc2955cf
6 changed files with 80 additions and 23 deletions
+4
View File
@@ -1,6 +1,7 @@
using System.Linq;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class DeployButton : MonoBehaviour
{
@@ -8,9 +9,12 @@ public class DeployButton : MonoBehaviour
public string levelName;
DeployController dc;
Button button;
void Start() {
dc = FindFirstObjectByType<DeployController>();
button = GetComponent<Button>();
if (GameController.i.IsLevelDestroyed(levelName)) button.interactable = false;
}
public void DeployFromButton() {