Esempio n. 1
0
 private void Awake()
 {
     //Load player data
     if (SceneManager.GetActiveScene().name != "Customise")
     {
         PlayerData loadedPlayer = PlayerBinarySave.LoadPlayerData();
         if (loadedPlayer != null)
         {
             playerStats.stats         = loadedPlayer.stats;
             profession                = loadedPlayer.profession;
             customisationTextureIndex = loadedPlayer.customisationTextureIndex;
         }
     }
 }
Esempio n. 2
0
    public void Awake()
    {
        //customisation = FindObjectOfType<Customisation>();
        defaultStat = new BaseStats[6]; //player has stats now

        //If not Customisation scene then load player data
        if (SceneManager.GetActiveScene().name != "Customisation")
        {
            //load player data
            PlayerData loadedPlayer = PlayerBinarySave.LoadPlayerData();
            if (loadedPlayer != null)
            {
                stats      = loadedPlayer.playerStats;
                profession = loadedPlayer.profession;
                //customisation.currentPartsTextureIndex = loadedPlayer.customisationTextureIndex;
            }
        }
    }
Esempio n. 3
0
 public void Load()
 {
     PlayerData data = PlayerBinarySave.LoadPlayerData();
 }