Introduction You know about Bitcoin, but do you know about its relative, Ethereum, and the potential it offers for gaming? In this tutorial, youâll learn why Ethereum is interesting for game developers and how it works from a game developerâs perspective. By the end of this tutorial, youâll know: Why the Ethereum network can disrupt [âŠ]
Any suggestions on how to fix this error? Also this is a awesome tutorial completely revolutionary thank you!
Assets/Unity-and-Ethereum-project-final/Assets/RW/Scripts/HighScoreController.cs(182,34): error CS0433: The type âBigIntegerâ exists in both âNethereum.Hex, Version=2.2.0.0, Culture=neutral, PublicKeyToken=nullâ and ânetstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51â
Hi Kevin. Very interesting tutorial. Right now, account + private key are hardcoded in Unity⊠a few questions:
How will users input their account address in the game? How will they input the PK? Specially⊠Will they trust your game to enter their PK? I mean, a mean developer could steal players PKsâŠ
Option B) Maybe we could generate an account âon the flyâ for each player, with a new PK. This can be âtransparentâ to the player. He only knows he has 0 ether. Then the game shows his brand new account address (he can copy it) and asks player to âinsert creditsâ, ie: âsend some ether to your account to playâ. At any times the player can insert ether or send out balance to his external wallet.
How could you do this? I mean, creating a new account + PK?
Which option seems better for you?
Thanks
(I guess option A is similar to DEXs and option B is similar to Centralized Exchanges that hold your private keys for you)
Hi dk007, yes good points. It would be a bad idea to trust your PK to a game, I agree with you totally. In practice, what would be needed would be integration with some sort of separate wallet app that could manage the signing of transactions,
On desktop, I believe this could be done with metamask, and a mobile version of metamask is in the works. There is also a project called uPort which is all about managing identity and keys.
Your option B is a good idea. You definitely donât want players to have to faff around downloading and installing a wallet app, registering with an exchange, transfering USD for ETH before they play your game. The idea of silently pre-creating accounts is what I think is done by chainmonsters.io and I think also I read the loom framework or some loom-based games do similar. Once the player has decided they like the game, then they can be slowly introduced to accounts and ether.
Yes, there is a lot of rivalry between the various blockchain techs. What makes it hard to choose a âsmart contract plaformâ is that all the tech is improving all the time.
So Ethereum seemed like a logical choice for describing the benefits that blockchain could bring to Ray Wenderlichâs Unity readers.
EOS seems a great platform too, although Iâve not used it (and it is not without itâs critics). It would be interesting to see the same sort of solution developed with EOS to compare the dev experience, user experience etc.
I was so glad when i found this tutorial, but i am getting the same errors as another commenter here. New versions of unity does not seem to have the ability to downgrade .net or atleast i dont understand how.
Would it be to much to as to request an updated tutorial how to integrate nethereum into unity? I know this guide has gotten a lot of traffic, and probably still does! Thanks a alot.