コード例 #1
0
ファイル: AccountManager.cs プロジェクト: lazalong/MidNight
    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);
    }