wrapper of plugins to handle dependencies
This commit is contained in:
@@ -7,7 +7,7 @@ using FlaxEditor;
|
||||
|
||||
namespace Game
|
||||
{
|
||||
public class ConsolePlugin : GamePlugin
|
||||
public class ConsolePlugin : GGamePlugin
|
||||
{
|
||||
public static PluginDescription DescriptionInternal = new PluginDescription
|
||||
{
|
||||
@@ -19,34 +19,31 @@ namespace Game
|
||||
Category = "Game"
|
||||
};
|
||||
|
||||
public override void Initialize()
|
||||
public override void Init()
|
||||
{
|
||||
base.Initialize();
|
||||
FlaxEngine.Debug.Log("ConsolePlugin initialized");
|
||||
Console.Init();
|
||||
}
|
||||
|
||||
public override void Deinitialize()
|
||||
public override void Deinit()
|
||||
{
|
||||
base.Deinitialize();
|
||||
}
|
||||
}
|
||||
|
||||
#if FLAX_EDITOR
|
||||
public class ConsoleEditorPlugin : EditorPlugin
|
||||
public class ConsoleEditorPlugin : GEditorPlugin
|
||||
{
|
||||
public override PluginDescription Description => ConsolePlugin.DescriptionInternal;
|
||||
|
||||
public override Type GamePluginType => typeof(ConsolePlugin);
|
||||
|
||||
public override void Initialize()
|
||||
public override void Init()
|
||||
{
|
||||
base.Initialize();
|
||||
FlaxEngine.Debug.Log("ConsolePlugin initialized");
|
||||
Console.Init();
|
||||
}
|
||||
|
||||
public override void Deinitialize()
|
||||
public override void Deinit()
|
||||
{
|
||||
base.Deinitialize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user