Closed Yangobears closed 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
getCoins
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.
Oh never mind, it's working now!
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-L70on 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.