GetSelectServer() public method

public GetSelectServer ( string &strIP, int &nPort ) : bool
strIP string
nPort int
return bool
Esempio n. 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();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        mConfig = new NFConfig();
        mConfig.Load();
        mConfig.GetSelectServer(ref strTargetIP, ref nPort);

        NFCElementManager.Instance.Load();
        NFCRenderInterface.Instance.Init();
    }
Esempio n. 3
0
    void Start()
    {
        _instance = this;

        Debug.Log("Root Start " + Application.platform);
        RenderSettings.fog = false;

        mConfig.Load();


        mPluginManager.Registered(new NFSDKPlugin(mPluginManager));
        mPluginManager.Registered(new NFUIPlugin(mPluginManager));
        mPluginManager.Registered(new NFScenePlugin(mPluginManager));

        mKernelModule = mPluginManager.FindModule <NFIKernelModule>();
        mClassModule  = mPluginManager.FindModule <NFIClassModule>();
        mNetModule    = mPluginManager.FindModule <NFNetModule>();
        mUIModule     = mPluginManager.FindModule <NFUIModule>();
        mLogModule    = mPluginManager.FindModule <NFLogModule>();


        mClassModule.SetDataPath(mConfig.GetDataPath());

        mPluginManager.Awake();
        mPluginManager.Init();
        mPluginManager.AfterInit();

        mUIModule.ShowUI <NFUILogin>();

        if (mConfig.GetServerList().Count > 1)
        {
            mbShowServer = true;
        }
        else
        {
            string strTargetIP = "127.0.0.1";
            if (mConfig.GetSelectServer(ref strTargetIP))
            {
                mNetModule.StartConnect(strTargetIP, port);
            }
        }



        DontDestroyOnLoad(gameObject);
    }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        mConfig = new NFConfig();
        mConfig.Load();
        mConfig.GetSelectServer(ref strTargetIP, ref nPort);
        String strConfigPath = mConfig.GetConfigPath();

        NFCElementManager.Instance.Load(strConfigPath);
        NFCRenderInterface.Instance.Init();
    }
Esempio n. 5
0
    void Awake()
    {
        _Instance = this;

        foreach (Transform trans in mTrans)
        {
            if (null != trans)
            {
                trans.gameObject.SetActive(true);
            }
        }

        mConfig = new NFConfig();
        mConfig.Load();
        mConfig.GetSelectServer(ref strTargetIP, ref nPort);

        NFCKernelModule.Instance.GetLogicClassModule().SetDataPath(mConfig.GetDataPath());

        NFCKernelModule.Instance.Init();
    }