Exemplo n.º 1
0
 private async void OnCellClick(int buttonNumber)
 {
     // Is My Turn
     try
     {
         if (!_currentTurnMember.User.IsMe)
         {
             return;
         }
         // Send TakeTurnData To Opponent
         await GsLiveHandler.TakeTurn(_whoTurn == 1? 0 : 1, buttonNumber, _whoTurn, _opponent.Id);
     }
     catch (Exception e)
     {
         Debug.LogError("OnCellClick Err : " + e);
     }
 }
Exemplo n.º 2
0
 private async void OnCellClick(int buttonNumber)
 {
     // Is My Turn
     try
     {
         Debug.Log("TurnBased Available : " + GameService.GSLive.IsTurnBasedAvailable());
         if (!_currentTurnMember.User.IsMe)
         {
             return;
         }
         // Send TakeTurnData To Opponent
         await GsLiveHandler.TakeTurn(_whoTurn == 1? 0 : 1, buttonNumber, _whoTurn, _opponent?.Id);
     }
     catch (Exception e)
     {
         Debug.LogError("OnCellClick Err : " + e);
     }
 }