diff options
| -rw-r--r-- | Scenes/Texty.tscn | 4 | ||||
| -rw-r--r-- | Scripts/Texty.cs | 19 |
2 files changed, 22 insertions, 1 deletions
diff --git a/Scenes/Texty.tscn b/Scenes/Texty.tscn index 9b8c9b8..7b46cf4 100644 --- a/Scenes/Texty.tscn +++ b/Scenes/Texty.tscn @@ -1,9 +1,11 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://Scenes/Game.tscn" type="PackedScene" id=1] [ext_resource path="res://Scenes/StartMenu.tscn" type="PackedScene" id=2] +[ext_resource path="res://Scripts/Texty.cs" type="Script" id=3] [node name="Texty" type="Node"] +script = ExtResource( 3 ) [node name="Game" parent="." instance=ExtResource( 1 )] visible = false diff --git a/Scripts/Texty.cs b/Scripts/Texty.cs new file mode 100644 index 0000000..8497f29 --- /dev/null +++ b/Scripts/Texty.cs @@ -0,0 +1,19 @@ +using Godot; + +namespace Texty.Scripts +{ + public class Texty : Node + { + + public Game Game; + public StartMenu StartMenu; + + public override void _Ready() + { + Game = GetNode<Game>(nameof(Game)); + StartMenu = GetNode<StartMenu>(nameof(StartMenu)); + } + + } +} + |
