public bool Init(Log.on_log on_log, ISockCallee callee) { Log.SetLogCallBack(on_log); m_gameClient = new GameClient(); if (m_localClient == null) { m_localClient = new GameClient(); } m_gameSock = new GameSock(); if (!m_gameSock.Init(callee)) { return(false); } ((GameReceiver)m_gameSock.GetGameReceiver()).SetGameClient((GameClient)m_gameClient); return(true); }
public bool Init(string strDeviceUid, Log.on_log on_log, ISockCallee callee) { fxVerify.Initalize(strDeviceUid); Log.SetLogCallBack(on_log); m_gameClient = new GameClient(); if (m_gameSock != null) { m_gameSock.Disconnect(); m_gameSock = null; } m_gameSock = new GameSock(); if (!m_gameSock.Init(callee)) { return(false); } ((GameReceiver)m_gameSock.GetGameReceiver()).SetGameClient((GameClient)m_gameClient); return(true); }