using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerReputation : MonoBehaviour { public ReputationLevel reputationLevel; PlayerAccountData accountData = new PlayerAccountData(); private void Awake() { reputationLevel = new ReputationLevel(); accountData = PlayerDataHandler.Instance.LoadPlayerAccountData(PlayerDataHandler.Instance.currentPlayerName.Value); if(accountData != null) { Debug.Log("Success Loading CharacterData"); reputationLevel = new ReputationLevel(accountData.currentReputationLevel, accountData.currentReputationExperience); } else { accountData = new PlayerAccountData(); } } }