// Start is called before the first frame update void Start() { player = Player.Instance; dateTimeInfo = DateTimeInfo.Instance; knowledgeLevelText = KnowledgeButton.GetComponentInChildren <Text>(); knowledgeXpSlider = KnowledgeButton.GetComponentInChildren <Slider>(); knowledgeXpText = knowledgeXpSlider.GetComponentInChildren <Text>(); studWaveLevelText = StudWaveButton.GetComponentInChildren <Text>(); studWaveXpSlider = StudWaveButton.GetComponentInChildren <Slider>(); studWaveXpText = studWaveXpSlider.GetComponentInChildren <Text>(); physicalLevelText = PhysicalButton.GetComponentInChildren <Text>(); physicalXpSlider = PhysicalButton.GetComponentInChildren <Slider>(); physicalXpText = physicalXpSlider.GetComponentInChildren <Text>(); charismaLevelText = CharismaButton.GetComponentInChildren <Text>(); charismaXpSlider = CharismaButton.GetComponentInChildren <Slider>(); charismaXpText = charismaXpSlider.GetComponentInChildren <Text>(); StaticPerkIncreaseInfoLayout = PerkIncreaseInfoLayout; }
void ReleaseDesignerOutlets() { if (AbilityArea != null) { AbilityArea.Dispose(); AbilityArea = null; } if (AlignmentButton != null) { AlignmentButton.Dispose(); AlignmentButton = null; } if (CharismaButton != null) { CharismaButton.Dispose(); CharismaButton = null; } if (ClassButton != null) { ClassButton.Dispose(); ClassButton = null; } if (ConstitutionButton != null) { ConstitutionButton.Dispose(); ConstitutionButton = null; } if (CRButton != null) { CRButton.Dispose(); CRButton = null; } if (CreatureSubtypeButton != null) { CreatureSubtypeButton.Dispose(); CreatureSubtypeButton = null; } if (CreatureTypeButton != null) { CreatureTypeButton.Dispose(); CreatureTypeButton = null; } if (DexterityButton != null) { DexterityButton.Dispose(); DexterityButton = null; } if (HeaderArea != null) { HeaderArea.Dispose(); HeaderArea = null; } if (InitButton != null) { InitButton.Dispose(); InitButton = null; } if (IntelligenceButton != null) { IntelligenceButton.Dispose(); IntelligenceButton = null; } if (NameButton != null) { NameButton.Dispose(); NameButton = null; } if (RaceButton != null) { RaceButton.Dispose(); RaceButton = null; } if (SensesButton != null) { SensesButton.Dispose(); SensesButton = null; } if (SizeButton != null) { SizeButton.Dispose(); SizeButton = null; } if (StrengthButton != null) { StrengthButton.Dispose(); StrengthButton = null; } if (WisdomButton != null) { WisdomButton.Dispose(); WisdomButton = null; } }