public void Awake() { LoadLvlData(); if (SceneManager.GetActiveScene().buildIndex > 0) { coinLogic = GameObject.Find("Player").GetComponent <CoinLogic>(); LoadLanguageData(); LoadCoinData(); LoadWatchedAdData(); LoadEquipmentData(); } }
public void Awake() { saveSystem = GameObject.Find("GameManager").GetComponent <SaveSystem>(); coinLogic = GameObject.Find("GameManager").GetComponent <CoinLogic>(); }