19 lines
455 B
C#
19 lines
455 B
C#
|
namespace Pong.Scripts.Managers.UI.Menus;
|
||
|
|
||
|
public partial class MainMenu : BaseMenu
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// code that executes when the start button is pressed. this loads the Pong scene to the root
|
||
|
/// of the scene tree.
|
||
|
/// </summary>
|
||
|
private void OnPlayButtonPressed()
|
||
|
{
|
||
|
GetTree().ChangeSceneToFile("res://Scenes/Pong.tscn");
|
||
|
}
|
||
|
|
||
|
private void OnSettingsButtonPressed()
|
||
|
{
|
||
|
GetTree().ChangeSceneToFile("res://Scenes/UI/Menus/Settings.tscn");
|
||
|
}
|
||
|
}
|