using Godot; using System; public class MainMenu : Control { private Main _main; public override void _Ready() { _main = GetTree().Root.GetNode
("Main"); } public void _on_Button_pressed() { var nParticles = GetNode("MenuButtons").GetNode("TextEdit").Text.ToInt(); _main.StartSimulation(nParticles); } public void _on_ToggleFullscreen_pressed() { if (OS.WindowFullscreen) OS.WindowFullscreen = false; else OS.WindowFullscreen = true; } }