private EOTClient(string appID, string appKey) { _appID = appID; _appKey = appKey; UserVerifyResult = new UserVerifyResult(); UserTransferResult = new UserTransferResult(); UserBalanceResult = new UserBalanceResult(); }
private IEnumerator TransferCoroutine(string transferTo, string transferAmount) { yield return(EOTClient.Instance.Transfer(_username, transferTo, TokenCode.ETH, transferAmount)); ProcessingAnimPanel.SetActive(false); UserTransferResult userTransferResult = EOTClient.Instance.UserTransferResult; if (userTransferResult.Code == EOTConstant.CODE_SUCCESS) { SuccessMsg.text = "Transfer is successful!"; SuccessMsgPanel.SetActive(true); } else { ErrorMsg.text = userTransferResult.Msg; ErrorMsgPanel.SetActive(true); } }