private void Awake() { HydrateRulePresetPanel(); if (FutureGameRules == null) { FutureGameRules = SaveDataManager.GetInitialGameRule(); } ActiveGameRules = FutureGameRules.CloneRules(); CurrentlyWorkshoppedGameRules = FutureGameRules.CloneRules(); RuleSetTitle.text = ActiveGameRules.RuleSetName; RulesDialogButtonText.text = "SHOW"; RulesDialog.gameObject.SetActive(false); CardsPerRankPanels = new HashSet <CardsPerRankPanel>(); for (int rank = 1; rank <= 8; rank++) { CardsPerRankPanel panel = ObjectPooler.GetObject <CardsPerRankPanel>(CardsPerRankPanelPF, CardsPerRankHolder); panel.SetRank(rank); panel.GameRulesManagerInstance = this; CardsPerRankPanels.Add(panel); } SetRulesFromPreset(CurrentlyWorkshoppedGameRules); HydrateRulePanel(); }