Added StartScreen and Scene Transition script

This commit is contained in:
2025-05-24 23:50:06 +02:00
parent 25d8f217ff
commit 3e135afecb
13 changed files with 195 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
using Godot;
namespace Babushka.scripts.CSharp.Common;
public partial class SceneTransition : Node
{
[Export] private PackedScene _sceneToLoad;
[Export] private Node _sceneInstanceParent;
[Export] private bool _unloadSelf = true;
public void LoadScene()
{
Node sceneInstance = _sceneToLoad.Instantiate();
_sceneInstanceParent.AddChild(sceneInstance);
if (_unloadSelf)
{
QueueFree();
}
}
}
@@ -0,0 +1 @@
uid://cssdu8viimwm6