public void HandleClick() { Provider.Dispatch(Playing.Instance.TryStart()); }
public override void OnPhotonPlayerConnected(PhotonPlayer newPlayer) { Provider.Dispatch(PlayerCount.Instance.Set(2)); }
public void HandleValueChanged(string value) { Provider.Dispatch(Name.Instance.Set(value)); }
public override void OnPhotonPlayerDisconnected(PhotonPlayer otherPlayer) { Provider.Dispatch(Playing.Instance.TryStop()); }
public override void OnLeftRoom() { Provider.Dispatch(Playing.Instance.SuccessStop()); }
public override void OnJoinedRoom() { Provider.Dispatch(Playing.Instance.SuccessStart()); }
public override void OnDisconnectedFromPhoton() { Provider.Dispatch(Playing.Instance.Set(false)); }
public override void OnFailedToConnectToPhoton(DisconnectCause cause) { Provider.Dispatch(Playing.Instance.ErroredStart()); }