一:原作地址
https://www.youtube.com/watch?v=M-3P59GtRW4
二:项目源码
https://github.com/mixandjam/GodofWar-AxeThrow.git
三:运行结果
运行环境:2018.4.36f1
报错
//报错1
Library/PackageCache/com.unity.probuilder@4.0.4/Settings/Editor/UserSettingsProvider.cs(15,19): error CS0234: The type or namespace name 'UIElements' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
//修改 把UNITY_2018_3 改为UNITY_2018_4
特别注意
导入后打开场景出现了脚本丢失,从新添加脚本报错
Can't add script behaviour CallbackExecutor. The script needs to derive from MonoBehaviour!
需要进入到ThrowController.cs
public class ThrowController : MonoBehaviour
改成public class ThrowController: MonoBehaviour
操作说明
鼠标滑动可以改变镜头,右键是挥动蓄力,出现瞄准点,然后左键砍出,然后左键返回
网友评论