강의

멘토링

커뮤니티

Inflearn Community Q&A

ckswh04141944's profile image
ckswh04141944

asked

Unity Game Development (Unity 2D) - From Start to Deployment

Various Functions - 4

궁금해서 질문합니다.

Written on

·

131

0

if ( Input.GetKeyDown(Keycode.Space)){

GetComponent().gravityScale = 0f;

}

에서 값을 누를때마다 기존값에 +1 이나 x(-1) 같이 변경하고싶은데 어떻게할까요?

unity

Answer

This question is waiting for answers
Be the first to answer!
ckswh04141944's profile image
ckswh04141944

asked

Ask a question