Credits Menu Added

This commit is contained in:
Roegner65
2026-02-01 14:08:33 -06:00
parent e5b046f4e6
commit 47887a3f10
16 changed files with 603 additions and 4 deletions
+3 -3
View File
@@ -5,8 +5,8 @@ using UnityEngine.UIElements;
public class MainMenuController : MonoBehaviour
{
[SerializeField] private List<string> buttonNames = new List<string> { "Start", "Experiment", "Level2" };
[SerializeField] private List<string> sceneNames = new List<string> { "Level1", "Experiment", "Level2" };
[SerializeField] private List<string> buttonNames = new List<string> { "Start", "Experiment", "Level2", "Credits" };
[SerializeField] private List<string> sceneNames = new List<string> { "Level1", "Experiment", "Level2", "Credits" };
private UIDocument uiDocument;
private List<Button> buttons;
@@ -24,7 +24,7 @@ public class MainMenuController : MonoBehaviour
return;
}
buttons = new List<Button> { new Button(), new Button(), new Button() };
buttons = new List<Button> { new Button(), new Button(), new Button(), new Button() };
for (int i = 0; i < buttons.Count; i++)
{
int buttonIndex = i;