EasyTouch丨Bug and Warning

锁跳Bug修复

锁跳:当在空中时,不能进行移动

ETCJoystick

if ((axisX.axisValue == 0 && axisY.axisValue == 0) && axisX.directCharacterController)
            {
                if (!axisX.directCharacterController.isGrounded)
                {
                    if (tmLockInJump == false)
                        DoTurnAndMove();
                    else
                    {
                        tmLastMove = Vector3.zero;
                    }
                }
            }

Warning修复

1、Obsolete

Assets/EasyTouchBundle/EasyTouch/Plugins/Editor/EasyTouchWelcomeScreen.cs(76,21): warning CS0618: `UnityEditor.EditorApplication.playmodeStateChanged' is obsolete: `Use EditorApplication.playModeStateChanged and/or EditorApplication.pauseStateChanged'

原因:

该API已过时

解决方法:

方法1:可用该信息提供的API代替原API

方法2:停止显示该warning信息。双击进入该脚本,在该脚本添加:

#pragma warning disable 0618

2、行尾不一致

解决办法:

双击进入该脚本,在弹出的行尾不一致对话框选择确定

3、Unity.PackageManagerUI.Editor.dll" is denied

解决办法:

关闭360,解除占用

猜你喜欢

转载自blog.csdn.net/weixin_38239050/article/details/81750402