Beispiel #1
0
    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();
    }
Beispiel #2
0
    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);
    }
Beispiel #3
0
    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);

    }
Beispiel #4
0
 private void Awake()
 {
     mPluginManager  = new NFPluginManager();
     mxObjectElement = new NFObjectElement();
 }