trilitech / tezos-unity-sdk

Tezos Unity SDK for developers. Discover the future of Web3 gaming.
https://tezos.com/unity
MIT License
24 stars 12 forks source link

Get coins not working in sample game #135

Closed Yangobears closed 1 year ago

Yangobears commented 1 year ago

Hi, as I downloaded the sample game and played around with it in unity. I couldn't find a way to get game tokens. The getCoins function implementation is here https://github.com/trilitech/tezos-unity-sdk/blob/adecba56cd485cdf51bf71db7723b400cb9db872/Samples~/Scripts/DemoExample/Core/ExampleManager.cs#L411-L421 The login method https://github.com/trilitech/tezos-unity-sdk/blob/adecba56cd485cdf51bf71db7723b400cb9db872/Samples~/Contracts/login.jsligo#L16-L70

on the contract (BCD link)

From the documentation, when a player login, 100 coins and a free item should be dropped, but doesn't seem to be happening when I tried it.

Yangobears commented 1 year ago

Oh never mind, it's working now!