using Godot; using Godot.Collections; public partial class ChessGame : Node2D { ChessBoard board; Global global; ConfirmationDialog dialog; private bool isSession = false; private Vector2 from; private Vector2 to; // Called when the node enters the scene tree for the first time. public override void _Ready() { // Init.Call(); global = GetNode("/root/Global"); board = GetNode("Chessboard"); dialog = new ConfirmationDialog { DialogAutowrap = true, MinSize = new Vector2I(400, 200), Position = new Vector2I(200, 400), }; AddChild(dialog); // GetNode