void InitializeReferences() { MoneyData = TheRunGameManager.Instance.MoneyData; CrystalsData = TheRunGameManager.Instance.CrystalsData; PerksData = TheRunGameManager.Instance.PerksData; PowerupsData = TheRunGameManager.Instance.PowerupsData; }
void Start() { Rewards = TheRunGameManager.Instance.RewardsData; Crystals = TheRunGameManager.Instance.CrystalsData; Perks = TheRunGameManager.Instance.PerksData; Money = TheRunGameManager.Instance.MoneyData; Powerups = TheRunGameManager.Instance.PowerupsData; }
protected override void OnEnable() { if (!HasBeenInitialized) { _PowerupsData = TheRunGameManager.Instance.PowerupsData; InstantiateCells(_PowerupsData.Data.Length); } base.OnEnable(); }