void Awake() { Test(); _Instance = this; foreach (Transform trans in mMainNodeTrans) { if (null != trans) { trans.gameObject.SetActive(true); } } mxObjectElement = new NFObjectElement(); mxObjectGM = new NFObjectGM(); mConfig = new NFConfig(); mConfig.Load(); mConfig.GetSelectServer(ref strTargetIP, ref nPort); NFCKernelModule.Instance.GetLogicClassModule().SetDataPath(mConfig.GetDataPath()); NFCKernelModule.Instance.Init(); }
public void StartConnect(string strIP, int nPort) { mxObjectElement = new NFObjectElement(); mxClient = new NFClientNet(this); mxBinMsgEvent = new NFBinraryMessageEvent(this); mxSendLogic = new NFBinarySendLogic(this); mxResultLogic = new NFCResultLogic(this); mxListener = new NFCoreExListener(this); mxListener.Init(); mxClient.Connect(strIP, nPort); }
private void Awake() { mPluginManager = new NFPluginManager(); mxObjectElement = new NFObjectElement(); }