Пример #1
0
        IEnumerator MintItem(string itemName, int quantity)
        {
            string itemId = itemName;

            SetAccessToken();
            Enjin.MintFungibleItem(_developerWalletAddress, new string[] { _playerWalletAddress }, itemId, quantity,
                                   (requestData) => { print("Item Minted::" + itemName); }, true);

            yield return(null);
        }
Пример #2
0
        IEnumerator MintItem(string itemName, int quantity)
        {
            string itemId = itemName;

            print(Enjin.GetCryptoItemURI(itemId));

            Enjin.MintFungibleItem(DEVELOPER_IDENTITY_ID, new string[] { PLAYER_ADDRESS }, itemId, quantity,
                                   (requestData) =>
            {
                print("Item Minted::" + itemName);
            }, true);

            yield return(null);
        }