Esempio n. 1
0
    void Start()
    {
        _instance = this;

        Debug.Log("Root Start");
        mPluginManager = new NFCPluginManager();
        mPluginManager.Registered(new NFCSDKPlugin(mPluginManager));
        mPluginManager.Registered(new NFLogicPlugin(mPluginManager));
        mPluginManager.Registered(new NFUIPlugin(mPluginManager));
        mPluginManager.Registered(new NFScenePlugin(mPluginManager));


        mClassModule = mPluginManager.FindModule <NFIClassModule>();
        mNetModule   = mPluginManager.FindModule <NFNetModule>();
        mUIModule    = mPluginManager.FindModule <NFUIModule>();

        mClassModule.SetDataPath("../../_Out/");

        if (RuntimePlatform.Android == Application.platform ||
            RuntimePlatform.IPhonePlayer == Application.platform)
        {
            mPluginManager.FindModule <NFIClassModule>().SetDataPath("./");
        }

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

        mUIModule.ShowUI <UILogin>();

        DontDestroyOnLoad(gameObject);
    }
Esempio n. 2
0
    void Start()
    {
        _instance = this;

        Debug.Log("Root Start");
        mPluginManager = new NFCPluginManager();
        mPluginManager.Registered(new NFCSDKPlugin(mPluginManager));
        mPluginManager.Registered(new NFCLogicPlugin(mPluginManager));
        mPluginManager.Registered(new NFCUIPlugin(mPluginManager));

#if UNITY_EDITOR
        mPluginManager.FindModule <NFILogicClassModule>().SetDataPath("../../_Out/");
#else
        mPluginManager.FindModule <NFILogicClassModule>().SetDataPath("./");
#endif

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

        NFCUIManager.Instance().ShowUI <UILogin>();

        DontDestroyOnLoad(gameObject);
    }