using Godot; using System; public class Main : Node { public void StartSimulation(int seed, int nParticles) { var particleSimulationPackedScene = GD.Load("res://ParticleSimulation/ParticleSimulationScene.tscn"); var particleSimulationScene = particleSimulationPackedScene.Instance(); particleSimulationScene.Name = "Simulation"; AddChild(particleSimulationScene); particleSimulationScene.Initialize(seed, nParticles); GetNode("MainMenu").Hide(); //OS.WindowResizable = false; } public void ExitToMenu() { GetNode("Simulation").QueueFree(); GetNode("MainMenu").Show(); } }