add: Agent, ProxyMethod, LoadingScene

This commit is contained in:
h z
2025-02-11 15:07:41 +00:00
parent aea9059e16
commit f7da4ee8bb
9 changed files with 105 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ namespace Polonium.Scenes;
public partial class RootScene : Node2D
{
private Scene CurrentScene { get; set; }
public void SwitchScene(Scene scene)
{
if (CurrentScene != null)
@@ -20,4 +20,15 @@ public partial class RootScene : Node2D
PoloniumRegistry.Instance.RootScene = this;
base._Ready();
}
[ProxyMethod]
public virtual void Enter()
{
}
public override void _EnterTree()
{
Enter();
base._EnterTree();
}
}