protected override void onCleanup() { this.cleanupHeader(); this.cleanupMissions(); this.cleanupSpecialOffer(); this.m_contentData = null; this.m_contentLastData = null; this.m_contentInstance = null; this.m_isInitialRefresh = false; this.m_lastActiveIapPlacementPromotionId = null; }
protected override void onRefresh() { Player player = GameLogic.Binder.GameState.Player; this.m_contentInstance = player.PromotionEvents.getNewestEventInstance(); bool flag = this.m_contentInstance != null; this.Contents.SetActive(flag); if (flag) { this.m_contentData = this.m_contentInstance.getData(); this.refreshHeader(); this.refreshInfo(); this.refreshMissions(); this.refreshSpecialOffer(); this.m_contentLastData = this.m_contentData; this.m_isInitialRefresh = false; } }