fix: some thing for game to be built
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
using System.Linq;
|
||||
using TMPro;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public class DeployButton : MonoBehaviour
|
||||
{
|
||||
public TMP_Text textField;
|
||||
public SceneAsset level;
|
||||
public string levelName;
|
||||
|
||||
DeployController dc;
|
||||
|
||||
@@ -15,11 +14,11 @@ public class DeployButton : MonoBehaviour
|
||||
}
|
||||
|
||||
public void DeployFromButton() {
|
||||
dc.Deploy(level.name);
|
||||
dc.Deploy(levelName);
|
||||
}
|
||||
|
||||
public void SetLevelInfoText() {
|
||||
LevelInfo levelInfo = GameController.i.GetLevel(level.name);
|
||||
LevelInfo levelInfo = GameController.i.GetLevel(levelName);
|
||||
string s = $"HP: {levelInfo.hp}/{levelInfo.maxHp}\nEnemies: {levelInfo.enemies.Values.Sum(x => x)}\nBullet type: {GameController.GetBulletTypeString(levelInfo.factory)}";
|
||||
textField.text = s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user