- visual update on riftraids - ability unlock system through ability tomes - (possible) bugfix sprite issue - player reputation level
30 lines
781 B
C#
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();
|
|
|
|
|
|
}
|
|
}
|
|
}
|