void Awake() { player.SetCharInfo(InfoHolder.GetPlayerInfo()); tegenstander.SetCharInfo(InfoHolder.GetEnemyInfo()); tegenstanderHealthBar.SetLevel(tegenstander.GetLevel()); playerHealthBar.SetLevel(player.GetLevel()); }
void Awake() { if (InfoHolder.playerInfoLoaded && InfoHolder.GetLastScene().Equals("Versier") && InfoHolder.GetEnemyInfo().GetNaam().Equals(gameObject.name)) { charInfo = InfoHolder.GetEnemyInfo(); } else { charInfo = gameObject.GetComponent <CharInfo>(); } }