public static void Setup()
 {
     if (SimulateNetworking)
     {
         ServerSimulator.Setup();
     }
     LSServer.Setup();
 }
示例#2
0
        public static void Setup(NetworkHelper networkHelper)
        {
            NetworkHelper = networkHelper;
            if (SimulateNetworking)
            {
                ServerSimulator.Setup();
            }

            NetworkHelper.OnFrameData += HandleFrameData;
            NetworkHelper.OnInitData  += HandleInitData;
            LSServer.Setup();
        }