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); } }
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); } }