void OnDisable() { m_eCurBuyType = BUY_TYPE.TYPE_BIND; m_FakeObjID = GlobeVar.INVALID_ID; m_FitOnGameObject = null; m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER; m_CurTabIndex = TAB_INDEX.TAB_INVALID; DestroyPartnerFakeObj(); SetInstance(null); if (GameManager.gameManager.ActiveScene != null) { GameManager.gameManager.ActiveScene.HideFakeObj(); } if (OPEN_TYPE.OPEN_CHRISTMAS == YuanBaoShopOpenType) { if (GlobalData.IsChristmasOpen()) { UIManager.ShowUI(UIInfo.ChristmasController); } } if (OPEN_TYPE.OPEN_FESTIVAL == YuanBaoShopOpenType) { if (GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_LOVERFLOWER) || GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_LOVERTHING)) { UIManager.ShowUI(UIInfo.FestivalController); return; } } YuanBaoShopOpenType = OPEN_TYPE.OPEN_FUNCTION_BUTTON; }
public void CloseWindow() { UIManager.CloseUI(UIInfo.OtherRoleView); if (m_oPenType == OPEN_TYPE.OPEN_TYPE_FRIEND) { UIManager.ShowUI(UIInfo.RelationRoot); } if (m_oPenType == OPEN_TYPE.OPEN_TYPE_LASTSPEAKER) { UIManager.ShowUI(UIInfo.ChatInfoRoot); } if (m_oPenType == OPEN_TYPE.OPEN_TYPE_ADD_FRIEND_RET) { if (OpenServer.Instance() == null || OpenServer.Instance().IsShow() == false) { UIManager.ShowUI(UIInfo.AddFriend); } } m_oPenType = OPEN_TYPE.OPEN_TYPE_INVALID; }
public File(String fileName, OPEN_TYPE Type, Byte[] Data) { this.Success = false; this.Path = fileName; if (Type == OPEN_TYPE.READING) if (this.Open()) this.Success = true; if (Type == OPEN_TYPE.WRITING) { this.Data = Data; if (this.Write()) Success = true; } if (Type == OPEN_TYPE.APPEND) { if (this.openAppend()) Success = true; } }
/// <summary> /// /// </summary> public static void SetOpenType(OPEN_TYPE opentype) { m_oPenType = opentype; }
public static void OpenYuanBaoShop(OPEN_TYPE openType, bool isShowBlackMarket) { YuanBaoShopOpenType = openType; UIManager.ShowUI(UIInfo.YuanBaoShop, YuanBaoShopLogic.OnYuanBaoShopLoad, isShowBlackMarket); }