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