강의

멘토링

로드맵

Inflearn Community Q&A

podo2020inc0279's profile image
podo2020inc0279

asked

[MMORPG Game Development Series with C# and Unity] Part 1: Introduction to Basic C# Programming

TextRPG2 Game Progress

아예 종료시키는 방법

Written on

·

277

0

졌을 때나 로비에서 바로 종료시키는 ending()을 추가하고싶은데 어케해야하나요..

break는 빠져나갈 루프가 없다고 안되네요.

while문이 있는 main메소드에서 직접 처리해야하나요?

C#

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

bool 값 변수를 둔다거나,
함수를 리턴할 때 종료 코드를 주고 그 값에 따라서 빠져나가는 등
굉장히 다양한 방법이 있습니다.

podo2020inc0279's profile image
podo2020inc0279

asked

Ask a question