制作团结游戏需要帮助 [英] Making a Unity Game NEED HELP

查看:74
本文介绍了制作团结游戏需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个错误,CS0103和CS0116。我正在制作游戏,这是我的代码:

I have two errors, CS0103, and CS0116. I am making a game and this is my code:

推荐答案

嗨kevparang,

Hi kevparang,

感谢您在此发帖。

请先在您的管理NuGet包中安装UnityEngine5。

Please install UnityEngine5 in your Manage NuGet Package first.

根据您的代码,请将OnCollisionEnter方法放在里面PumkinScript类。

According to your code, please put the OnCollisionEnter method inside the PumkinScript class.

有关CS0103和CS0116的详细信息,请参阅MSDN文档。

For more information about CS0103 and CS0116, you could refer to the MSDN document.

https:// docs .microsoft.com / EN-US / DOTNET / CSHARP / LANGUAG e-reference / compiler-messages / cs0103

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0116 < a href ="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0103">

最好的问候,

Wendy


这篇关于制作团结游戏需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆