コード例 #1
0
 void InitializeReferences()
 {
     MoneyData    = TheRunGameManager.Instance.MoneyData;
     CrystalsData = TheRunGameManager.Instance.CrystalsData;
     PerksData    = TheRunGameManager.Instance.PerksData;
     PowerupsData = TheRunGameManager.Instance.PowerupsData;
 }
コード例 #2
0
 void Start()
 {
     Rewards  = TheRunGameManager.Instance.RewardsData;
     Crystals = TheRunGameManager.Instance.CrystalsData;
     Perks    = TheRunGameManager.Instance.PerksData;
     Money    = TheRunGameManager.Instance.MoneyData;
     Powerups = TheRunGameManager.Instance.PowerupsData;
 }
コード例 #3
0
    protected override void OnEnable()
    {
        if (!HasBeenInitialized)
        {
            _PerksData = TheRunGameManager.Instance.PerksData;
            InstantiateCells(_PerksData.Data.Length);
        }

        base.OnEnable();
    }
コード例 #4
0
		void Awake()
		{
			PerksData = TheRunGameManager.Instance.PerksData;
			TrophiesData = TheRunGameManager.Instance.TrophiesData;
		}