Пример #1
0
    private IEnumerator RegisterAccount(string userName, int passwordHash, string data, Result <bool> result)
    {
        Result <bool> r = new Result <bool>(this);

        yield return(StartCoroutine(storage.AddAccount(userName, passwordHash, storage.GenerateAccountID(), data, r)));

        result.SetValue(r.Value);
    }