I have been watching burgzerg arcade tutorial #17 :17. Unity3d Tutorial - Character Statisics 7/7 - YouTube and i make exactly that he wanted to do, but the console is saying to me error CS0542: `Skill.Skill()': member names cannot be the same as their enclosing type and in the video he puts the script exactly like me but he hasn´t got the error, PLEASE CHECK MY SCRIPT TO SEE WHY I HAVE THE ERROR.
public class Skill : ModifiedStat {
private bool _known;
public void Skill() {
_known= false;
ExpToLevel = 25;
LevelModifier = 1.1f;
}
public bool Known {
get{ return _known; }
set{ _known = value; }
}
}
public enum PoderName {
Melee_Offence,
Melee_Defence,
Ranged_Offence,
Range_Defence,
Magic_Offence,
Magic_Defence,
}