I’m following 36. Unity3d Tutorial - Instantiating Our Character 4/5 - YouTube This tutorial, and I’m on video 36.
The problem is that I have a script that is suppose to show 3x AttributeNames
Insted… it shows NOTHING. The tutorial have different debugs thru the video and it have all worked well until I get to 11 min of the video, then nothing shows up.
Here is some part of the script , need more just ask.
for(int cnt = 0; cnt < Enum.GetValues(typeof(VitalName)).Length; cnt++) {
pcClass.GetVital(cnt).BaseValue = PlayerPrefs.GetInt (((VitalName)cnt).ToString() + " - Base Value", 0);
pcClass.GetVital(cnt).ExpToLevel = PlayerPrefs.GetInt(((VitalName)cnt).ToString () + " - Exp To Level", 0);
string myMods = PlayerPrefs.GetString(((VitalName)cnt).ToString() + " - Mods","");
string[] mods = myMods.Split('|');
foreach(string s in mods) {
string[] modStats = s.Split('_');
for(int x = 0; x < Enum.GetValues (typeof(AttributeName)).Length; x++) {
if(modStats[0] == ((AttributeName)x).ToString())
Debug.Log(modStats[0] + " = " + ((AttributeName)x).ToString());
This is a note that I get!
Assets/Scripts/Character Classes/Attribute.cs(24,31): warning CS0108: `Attribute.Name' hides inherited member `BaseStat.Name'. Use the new keyword if hiding was intended
Any ideas? been stuck for a long time now