override public void Dispose() { //TODO m_models = null; m_serverCeneter = null; base.Dispose(); }
static ServerMediation() { st_ServerCenter = GameObject.Find("Network").GetComponent <ServerCenter>(); st_ScreenBuild = GameObject.Find("MyScreen").GetComponent <ScreenBuild>(); st_ButtonRespond = GameObject.Find("MyButton").GetComponent <ButtonRespond>(); st_RobotMotion = GameObject.Find("MyMotion").GetComponent <RobotMotion>(); st_Camerascript = GameObject.Find("CameraFree").GetComponent <Camerascript>(); }
static void Main(string[] args) { MessageHandler MH = new MessageHandler(); AccountCache.Instance.Add(AccountTable.GetAccounts()); UserCache.Instance.addUser(AccountTable.GetUserData()); RoomManager.Instance.init(); ServerCenter serverCenter = new ServerCenter(4051, 1000, 1024, MH); Console.Read(); }
protected override void OnStart(string[] args) { string host = ConfigurationManager.AppSettings["server-host"]; int port = int.Parse(ConfigurationManager.AppSettings["server-port"]); string manager_host = ConfigurationManager.AppSettings["manager-host"]; int manager_port = int.Parse(ConfigurationManager.AppSettings["manager-port"]); mServer = new DTCore.Center.ServerCenter(); mServer.Loger.Handlers.Add(new Log4NetHandler()); mServer.Open(host, port, manager_host, manager_port); }
protected override void Init() { m_models = this.GetModels <ModelFactory>(); m_serverCeneter = this.GetServers <ServerCenter>(); base.Init(); }