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