add: Agent, ProxyMethod, LoadingScene
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user