public void Save() { SaveCustomSet.CustomisationSet(this); //SaveSystem.SavePlayer(this); //Function called Save this will allow us to save our indexes //SetInt for SkinIndex, HairIndex, MouthIndex, EyesIndex //SetString CharacterName SceneManager.LoadScene(1); }
public void LoadTexture() { // This function is saying, load all of the pieces and information of the players character CustomisationSave data = SaveCustomSet.LoadCustomSet(); SetTexture("Skin", data.skinIndex); SetTexture("Hair", data.hairIndex); SetTexture("Mouth", data.mouthIndex); SetTexture("Eyes", data.eyesIndex); SetTexture("Clothes", data.clothesIndex); SetTexture("Armour", data.armourIndex); this.gameObject.name = data.characterName; CharName.text = data.characterName; CharRace.text = data.charRace; for (int i = 0; i < 6; i++) { stats[i].text = data.stats[i].ToString(); } }
public void Save() { SaveCustomSet.CustomisationSet(this); }