Multi-platform Unity implementation (WebExtensionWallet is not supported at this time) Help Unity game developers quickly access the Nebulas network to unlock levels, recharge payments, and trade items.
public static void Call(GoodsModel goods, String functionName, String to, String value, String[] args, String serialNumber)
public void CallTransfer()
{
var gmol = new GoodsModel();
var serialNumber = Util.getRandomCode(32);
SmartContracts.Call(gmol, "vote", inputQueryTransfer.text, (Util.OnNAS * 0.000001).ToString("F0"), new string[] { "霸王别姬" }, serialNumber);
StartCoroutine(TransferStatusCoroutine(serialNumber));
}
public IEnumerator TransferStatusCoroutine(string serialNumber)
{
yield return new WaitForSeconds(1);
yield return SmartContracts.QueryTransferStatus(serialNumber, (success) =>
{
Debug.Log(success);
TransferStatusHandler.Invoke(success);
}, (fail) =>
{
Debug.LogError(fail);
TransferStatusErrorHandler.Invoke(fail);
});
}
public static void Pay(GoodsModel goods, String to, String value, String serialNumber)
public static IEnumerator QueryTransferStatus(String serialNumber, Action onSuccess, Action onFail)
public static IEnumerator SimulationCall(string from, string to, string function, string[] args, Action onSuccess, Action onFail)
public void SimulationCall()
{
this.StartCoroutine(
SmartContracts.SimulationCall("n1NrqHkmuFAHsifysfBh6gombgeg6wJrfnB", "n1j2Q5E9SU1JnpqbyQLVRM8D2jPeefDXKau", "info", null, (success) =>
{
Debug.Log(success);
TransferStatusHandler.Invoke(success);
}, (fail) =>
{
Debug.LogError(fail);
TransferStatusErrorHandler.Invoke(fail);
})
);
}
You sould insert "openapp.nasnano" into PlayerSetting > Supportd URL schemes