reformat code + level load events
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using FlaxEngine;
|
||||
using Console = Cabrito.Console;
|
||||
|
||||
#if FLAX_EDITOR
|
||||
using FlaxEditor;
|
||||
#endif
|
||||
@@ -11,51 +9,51 @@ namespace Game
|
||||
{
|
||||
public class NetworkManagerPlugin : GamePlugin
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
Debug.Log("NetworkManagerPlugin Initialize");
|
||||
Console.Init();
|
||||
|
||||
NetworkManager.Init();
|
||||
|
||||
Level.SceneLoaded += (scene, guid) => Console.Print("scene loaded: " + scene.Name);
|
||||
}
|
||||
|
||||
public override void Deinitialize()
|
||||
{
|
||||
base.Deinitialize();
|
||||
Debug.Log("NetworkManagerPlugin Deinitialize");
|
||||
}
|
||||
|
||||
public static PluginDescription DescriptionInternal = new PluginDescription()
|
||||
public static PluginDescription DescriptionInternal = new PluginDescription
|
||||
{
|
||||
Author = "Ari Vuollet",
|
||||
Name = "NetworkManager",
|
||||
Description = "NetworkManager for Goake",
|
||||
Version = Version.Parse("0.1.0"),
|
||||
IsAlpha = true,
|
||||
Category = "Game",
|
||||
Category = "Game"
|
||||
};
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
Debug.Log("NetworkManagerPlugin Initialize");
|
||||
Console.Init();
|
||||
|
||||
NetworkManager.Init();
|
||||
}
|
||||
|
||||
public override void Deinitialize()
|
||||
{
|
||||
base.Deinitialize();
|
||||
Debug.Log("NetworkManagerPlugin Deinitialize");
|
||||
}
|
||||
}
|
||||
|
||||
#if FLAX_EDITOR
|
||||
public class NetworkManagerEditorPlugin : EditorPlugin
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
Debug.Log("NetworkManagerEditorPlugin Initialize");
|
||||
Console.Init();
|
||||
}
|
||||
public class NetworkManagerEditorPlugin : EditorPlugin
|
||||
{
|
||||
public override PluginDescription Description => NetworkManagerPlugin.DescriptionInternal;
|
||||
|
||||
public override void Deinitialize()
|
||||
{
|
||||
Debug.Log("NetworkManagerEditorPlugin Deinitialize");
|
||||
}
|
||||
public override Type GamePluginType => typeof(NetworkManagerPlugin);
|
||||
|
||||
public override PluginDescription Description => NetworkManagerPlugin.DescriptionInternal;
|
||||
public override void Initialize()
|
||||
{
|
||||
Debug.Log("NetworkManagerEditorPlugin Initialize");
|
||||
Console.Init();
|
||||
|
||||
public override Type GamePluginType => typeof(NetworkManagerPlugin);
|
||||
}
|
||||
NetworkManager.Init();
|
||||
}
|
||||
|
||||
public override void Deinitialize()
|
||||
{
|
||||
Debug.Log("NetworkManagerEditorPlugin Deinitialize");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user