using Godot; using System; using System.Net.Cache; public partial class Playbutton : Button { private LLMApiRequests llmApiRequests; // Called when the node enters the scene tree for the first time. public override void _Ready() { SetProcess(false); llmApiRequests = GetTree().Root.GetNode("Root/LLMApiRequests"); } public override void _Pressed() { // GD.Print("a"); llmApiRequests?.PostToApi(); var node = GetTree().Root.GetNode("Root/Ingame/IngameCanvas"); node.SetProcess(true); node.Show(); var GParent = GetTree().Root.GetNode("Root/MainMenu/MainMenuCanvas"); GParent.Hide(); } }