인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

happybee's profile image
happybee

asked

[MMORPG Game Development Series with C# and Unity] Part 2: Data Structures and Algorithms

Create a map

Render함수로 넘어가지 않습니다

Written on

·

181

1

강의와 똑같이 작성했는데 while문에서 경과시간은 잘찍히는데 그 이후의 ahhaaha는 나오지 않고 타일들도 나오지 않습니다 ㅠ.ㅠ 뭐가 문제일까요? 디버그해보면 

이렇게 찍히고 경과시간문 다음으로 넘어가지 않습니다 33보다 작으면 continue하기로 되어있는데 왜 넘어가지않는걸까요?

C#

Answer 1

1

rookiss님의 프로필 이미지
rookiss
Instructor

https://www.inflearn.com/questions/78754
위 문제랑 같은 상황 같네요.
int currentTick = Environment.TickCount & Int32.MaxValue;
로 수정해보시기 바랍니다.

C#의 TickCount는 C++처럼 0부터 시작하는게 아니어서 그랬습니다.
혼선을 드려 죄송합니다!

happybee's profile image
happybee

asked

Ask a question