unity 战神4奎爷的回旋战斧

2021-09-24  本文已影响0人  安宇辛
项目预览
一:原作地址
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

操作说明
鼠标滑动可以改变镜头,右键是挥动蓄力,出现瞄准点,然后左键砍出,然后左键返回

可以快乐的玩耍了 砍中了
上一篇 下一篇

猜你喜欢

热点阅读