public void Start() { Instance = this; if (!Initialized) { CardOffers = CardOfferParent.GetComponentsInChildren <ShopCardOfferPrefab>().ToList(); AugmentationOffers = AugmeticsParent.GetComponentsInChildren <ShopAugmentationOfferPrefab>().ToList(); CancelButton.onClick.AddListener(() => { Hide(); }); Initialized = true; } }
public override void AwakenOnSceneStart() { Instance = this; }