You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Judge if float over ground
if (isFloating)
{
StopFloating();
colliders =
Physics2D.OverlapCircleAll(floatCheck.position, checkRadius, groundLayer);
for (int i = 0; i < colliders.Length; i++)
{
if (colliders[i].gameObject != gameObject)
{
KeepFloating();
}
}
}
角色漂浮处理
// Handle floating
if (horizonMove != 0)
{
// Make or keep player floating
if ((isGrounded || isFloating) && !jump)
{
KeepFloating();
}
}
else
{
StopFloating();
}
角色移动时漂浮,跳跃会出现蜜汁bug,跳不高或者跳不起来,在地图浮板上十分明显,猜测是漂浮地面判断问题
可能的问题代码:
The text was updated successfully, but these errors were encountered: