コード例 #1
0
    public void NotReadyPrompt(WalletValidationCoordinator.ValidationOutcome args)
    {
        StopAllCoroutines();

        string message = null;

        switch (args.code)
        {
        case WalletValidationCoordinator.ValidationOutcome.Code.TooSoon:
            BigInteger value = (BigInteger)args.value;
            message = $"Wait {value.ToString("00")} seconds.";
            break;

        case WalletValidationCoordinator.ValidationOutcome.Code.InvalidAddress:
            message = "Invalid address.";
            break;

        case WalletValidationCoordinator.ValidationOutcome.Code.DoesNotQualify:
            message = "You don't qualify.";
            break;
        }
        StartCoroutine(DisplayPrompt(message, promptDuration));
    }
コード例 #2
0
 private void TerminateCoroutineExecution(WalletValidationCoordinator.ValidationOutcome outcome)
 {
     validationComplete?.Invoke(outcome);
 }