using Godot; namespace Game; public partial class ScriptMain : Node2D { [Export(PropertyHint.Range, "0,1000,1")] public int InspectorNumber { get; set; } = 7; private bool processPrinted; private bool physicsProcessPrinted; private bool inputPrinted; private bool guiInputPrinted; public override void _EnterTree() { GD.Print("LeanCLR demo: _EnterTree owner name = " + Name); } public override void _ExitTree() { GD.Print("LeanCLR demo: _ExitTree owner name = " + Name); } public override void _Ready() { StringName ownerName = Name; GD.Print("LeanCLR demo: ScriptLanguage owner name = " + ownerName.ToString()); Position = new Vector2(12.0f, 34.0f); Scale = new Vector2(2.0f, 3.0f); SetModulate(new Color(0.25f, 0.5f, 0.75f, 1.0f)); Color modulate = GetModulate(); GD.Print("LeanCLR demo: position = " + Position.ToString()); GD.Print("LeanCLR demo: scale = " + Scale.ToString()); GD.Print("LeanCLR demo: modulate color = " + modulate.ToString()); Label label = GetNode