RiftMayhem/Assets/Scripts/Player/PlayerReputation.cs
Pedro Gomes 9c136817b3 Updates to rogue-lite mechanics (WIP)
- visual update on riftraids
- ability unlock system through ability tomes
- (possible) bugfix sprite issue
- player reputation level
2025-01-18 23:14:12 +00:00

30 lines
781 B
C#

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();
}
}
}