Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
using System;
using UniRx;
using UnityEngine;
using UnityEngine.UI;
using WebSocketSharp;
using ObservableNCMB;
public class LoginExample : MonoBehaviour
public String Id;
public Password;
[SerializeField] private Button loginButton;
private void Start()
.Do(_ => Debug.Log("ログイン開始"))
.SelectMany(_ => ObservableUserAuth.LoginAsync(Id, Password))
.OnErrorRetry((Exception ex) =>
}, TimeSpan.FromSeconds(1))
.Subscribe(x =>
Debug.Log("ログイン成功:" + x.UserName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment