Skip to content

Update Player.cs - #4

Open
zekron wants to merge 1 commit into
RYanXuDev:masterfrom
zekron:Move-Direction
Open

Update Player.cs#4
zekron wants to merge 1 commit into
RYanXuDev:masterfrom
zekron:Move-Direction

Conversation

@zekron

@zekron zekron commented Nov 24, 2021

Copy link
Copy Markdown

#3 修复玩家受击后的移动问题。

目前的做法是在执行input.onStopMove的回调StopMove()中,把 moveDirection 重置。

理论上还有一个方法,就是把玩家的移动方式从刚体改成使用FixedUpdate()或者IEnumerator修改玩家的 transform ,但需要修改的代码有点多,就不在这个仓库里pq了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant