refactor party
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
using Godot;
|
||||
|
||||
namespace yourareanaiceo;
|
||||
namespace Game.Extensions;
|
||||
|
||||
public static class NodeExtensions
|
||||
{
|
||||
public static Game GetGame(this Node node)
|
||||
public static Main GetMain(this Node node)
|
||||
{
|
||||
return node.GetTree().CurrentScene as Game;
|
||||
return node.GetTree().CurrentScene as Main;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user