- Home /
Question by
psychedelik · Aug 17, 2011 at 11:08 PM ·
c#error
Class, struct, or interface method must have a return type
error: error CS1520: Class, struct, or interface method must have a return type
script:
public class Skill : ModifiedStat {
private bool _known;
public Skill() {
_known = false;
ExpToLevel = 25;
LevelModifier = 1.1f;
}
public bool Known {
get{ return _known;}
set { _known = value;}
}
}
public enum SkillName{
Melee_Offence,
Melee_Defence,
Ranged_Offence,
Ranged_Defence,
Magic_Offence,
Magic_Defence
}
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
how can i check if index exists? 2 Answers
DontDestroyOnLoad with object on another scene 2 Answers
Character moving forwards before pressing anything 0 Answers