예제 #1
0
 public void HandleClick()
 {
     Provider.Dispatch(Playing.Instance.TryStart());
 }
예제 #2
0
 public override void OnPhotonPlayerConnected(PhotonPlayer newPlayer)
 {
     Provider.Dispatch(PlayerCount.Instance.Set(2));
 }
예제 #3
0
 public void HandleValueChanged(string value)
 {
     Provider.Dispatch(Name.Instance.Set(value));
 }
예제 #4
0
 public override void OnPhotonPlayerDisconnected(PhotonPlayer otherPlayer)
 {
     Provider.Dispatch(Playing.Instance.TryStop());
 }
예제 #5
0
 public override void OnLeftRoom()
 {
     Provider.Dispatch(Playing.Instance.SuccessStop());
 }
예제 #6
0
 public override void OnJoinedRoom()
 {
     Provider.Dispatch(Playing.Instance.SuccessStart());
 }
예제 #7
0
 public override void OnDisconnectedFromPhoton()
 {
     Provider.Dispatch(Playing.Instance.Set(false));
 }
예제 #8
0
 public override void OnFailedToConnectToPhoton(DisconnectCause cause)
 {
     Provider.Dispatch(Playing.Instance.ErroredStart());
 }