강의

멘토링

커뮤니티

Inflearn Community Q&A

yhw9061345's profile image
yhw9061345

asked

[Unity 3D] FPS Survival Defense

In-depth character movement

중간에 앉기 기능이 있는데 컨트롤키를 누르고 있을때만 앉아 있을수 없나요?

Written on

·

301

0

unity

Answer 1

0

TryCrouch() 안에

if(Input.GetKeyUp(KeyCode.LeftControl))

{

            Crouch();

}

추가 해주시면 될것 같습니다.

yhw9061345's profile image
yhw9061345

asked

Ask a question