add: you can't deploy to destroyed levels
add: levels now have bulletsGenerate update: levels have different factories
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user