Credits Menu Added
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user