update: deploy buttons

This commit is contained in:
KOSMOGOR
2025-04-26 21:35:36 +03:00
parent 97abae3080
commit 6338e20f01
19 changed files with 1565 additions and 1719 deletions
+8
View File
@@ -1,3 +1,6 @@
using System.Linq;
using TMPro;
using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;
@@ -11,4 +14,9 @@ public class DeployController : MonoBehaviour
LevelInfo level = GameController.i.GetLevel(sceneName);
SceneManager.LoadScene(level.scene.name);
}
public void SetLevelInfoText(TMP_Text textField, SceneAsset level) {
LevelInfo levelInfo = GameController.i.GetLevel(level.name);
string s = $"HP: {levelInfo.hp}/{levelInfo.maxHp}\nEnemies: {levelInfo.enemies.Values.Sum(x => x)}\nBullet type: {GameController.GetBulletTypeString(levelInfo.factory)}";
}
}