public PlayerBehaviour.BasicStats GetBasicStats(PlayerBehaviour.TypeCharacter type) { foreach (BasicInfoChar info in baseInfoChars) { if (info.typeChar == type) { return(info.baseInfo); } } return(baseInfoChars[0].baseInfo); }
public static void SetTypeCharacter(PlayerBehaviour.TypeCharacter newType) { PlayerPrefs.SetInt("TypeCharacter", (int)newType); }