示例#1
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);
    }
示例#2
0
 // Logic Event
 public bool OnLoginSuccess(NFIDataList valueList)
 {
     NFCUIManager.Instance().ShowUI <UISelectServer>();
     return(true);
 }
示例#3
0
 private void OnRoleClick(int nIndex)
 {
     NFCPlayerLogic.Instance().RequireEnterGameServer(nIndex);
     NFCUIManager.Instance().CloseUI();
     Application.LoadLevel(1);
 }
示例#4
0
 public bool OnSelectServer(NFIDataList valueList)
 {
     NFCUIManager.Instance().ShowUI <UISelectRole>();
     return(true);
 }