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