制作团结游戏需要帮助 [英] Making a Unity Game NEED HELP
问题描述
我有两个错误,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/language-reference/compiler-messages/cs0116 < a href ="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0103">
最好的问候,
Wendy
这篇关于制作团结游戏需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!