asked
[MMORPG Game Development Series with C# and Unity] Part 1: Introduction to Basic C# Programming
TextRPG2 Monster Creation
Written on
·
367
0
작성을 하다보면
CreatureType Type;
protected int hp = 0;
protected int attack = 0;
protected Creature(CreatureType type)
{
this.Type = type;
}
이렇게 작성하면 반환값이 없다고 하면서 오류가 나길래protected void 를 붙였더니 오류가 사라지는데 이게 아직 다른 값들을 작성전인데 void 를 붙여도 나중에 상관없나요?
Answer 1
이게 대소문자 떄문에 그런거 같네요.... ㅠㅠ 알게 되었지만 질문은 일단 남겨둘꼐요 ..ㅎㅎ;