public void Setup(CIHTTPServer server) { _server = server; _server.MessageReady += onMessageReady; Console.WriteLine("CommandBehavior Setup()"); //SceneManager.activeSceneChanged += OnSceneChange; }
/// <summary> /// Initialize the server. /// </summary> private void Awake() { Logger.Debug("Starting CIHTTPServer..."); if (_instance != null) { Logger.Warning("CIHTTPServer already exists, destroying..."); Destroy(_instance); } _instance = this; InitServer(); BuildCommands(); }