private void CreatePartListing() { if (this.partListing != null) { return; } this.partListing = PartListing.Create(); this.partListing.transform.parent = base.transform.parent.parent; this.partListing.Close(); if (this.scope == null) { this.CreatePartScope(UnityEngine.Object.FindObjectOfType <LevelManager>()); } this.partListing.SetPartScope(this.scope); }
public override void OnDataLoadedStart() { PartListing.Create().Close(); int @int = GameProgress.GetInt("branded_reward_gift_time", 0, GameProgress.Location.Local, null); int num = 86400; if (Singleton <GameConfigurationManager> .IsInstantiated() && Singleton <GameConfigurationManager> .Instance.HasValue("branded_reward_cooldown", "time")) { num = Singleton <GameConfigurationManager> .Instance.GetValue <int>("branded_reward_cooldown", "time"); } if (@int > 0 && Singleton <TimeManager> .Instance.CurrentEpochTime - @int > num) { GameProgress.DeleteKey("branded_reward_gift_time", GameProgress.Location.Local); GameProgress.DeleteKey("branded_reward_gifts_today", GameProgress.Location.Local); } }