Using/handling Unity3d游戏中的比特币
Using/handling bitcoin in Unity3d game
我需要在我的 unity 项目中处理比特币
我尝试安装一些 nuget 包来支持它
例如:https://github.com/blockchain/api-v1-client-csharp
但我总是遇到这个错误
Could not install package 'BlockchainAPI 2.0.0'. You are trying to
install this package into a project that targets
'.NETFramework,Version=v4.0', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author.
不幸的是 - 目前还没有支持比特币的 unity3d 插件
有什么建议和解决方案吗?
插件使用的 .NET 版本 > Unity 支持的 .NET 版本。
我知道的最简单的解决方案是直接从 link 您 posted.Delete 任何 不是 C# 文件的文件下载项目(.cs
).提取那些包含剩余文件的文件夹,并将它们放入您的 Unity 项目中。现在寻找错误。如果您发现有错误的脚本或使用C#4类的脚本,请修改并手动修复错误。
这比尝试从头开始实施您自己的比特币 API 更容易。
注意:我推荐这种方法的唯一原因是因为我查看了项目内部,里面没有 DLL
个文件。因此,如果 API 中没有 DLL
文件,则可以移植它。假设有 DLL
个文件使用 C# 4 编译,那将是一个问题。
There's a beta edition of Unity 现在支持更新的 Mono 版本,可以让您编译 .NET 4.5.2(或更早版本)项目。
我需要在我的 unity 项目中处理比特币
我尝试安装一些 nuget 包来支持它
例如:https://github.com/blockchain/api-v1-client-csharp
但我总是遇到这个错误
Could not install package 'BlockchainAPI 2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
不幸的是 - 目前还没有支持比特币的 unity3d 插件
有什么建议和解决方案吗?
插件使用的 .NET 版本 > Unity 支持的 .NET 版本。
我知道的最简单的解决方案是直接从 link 您 posted.Delete 任何 不是 C# 文件的文件下载项目(.cs
).提取那些包含剩余文件的文件夹,并将它们放入您的 Unity 项目中。现在寻找错误。如果您发现有错误的脚本或使用C#4类的脚本,请修改并手动修复错误。
这比尝试从头开始实施您自己的比特币 API 更容易。
注意:我推荐这种方法的唯一原因是因为我查看了项目内部,里面没有 DLL
个文件。因此,如果 API 中没有 DLL
文件,则可以移植它。假设有 DLL
个文件使用 C# 4 编译,那将是一个问题。
There's a beta edition of Unity 现在支持更新的 Mono 版本,可以让您编译 .NET 4.5.2(或更早版本)项目。