コード例 #1
0
        public void Setup(CIHTTPServer server)
        {
            _server = server;
            _server.MessageReady += onMessageReady;

            Console.WriteLine("CommandBehavior Setup()");
            //SceneManager.activeSceneChanged += OnSceneChange;
        }
コード例 #2
0
 /// <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();
 }