This commit is contained in:
RochesterX
2025-03-03 18:23:54 -05:00
parent fb38fa557b
commit f1f220884b
14 changed files with 2378 additions and 1 deletions

19
Assets/MapSelect.cs Normal file
View File

@@ -0,0 +1,19 @@
using UnityEngine;
using UnityEngine.UI;
public class MapSelect : MonoBehaviour
{
private ToggleGroup maps;
private void Start()
{
maps = GetComponent<ToggleGroup>();
}
void Update()
{
Toggle toggle = maps.GetFirstActiveToggle();
GameManager.map = toggle.name;
print(GameManager.map);
}
}