private IEnumerator QueryBoardDisplay(MatchSyncEventArgs args)
    {
        yield return(new WaitForSeconds(1.0f));

        Debug.LogFormat("Match In Progress: {0} | Current Match Not Null: {1}",
                        MatchHandler.CurrentMatch != null ? args.Match.InProgress.ToString() : "NULL",
                        MatchHandler.CurrentMatch != null);

        Debug.LogFormat("Match Identities: {0} | {1}",
                        MatchHandler.CurrentMatch != null ? MatchHandler.CurrentMatch.MatchIdentity : "NULL",
                        args.Match.MatchIdentity);

        if (args.Match.InProgress && MatchHandler.CurrentMatch != null &&
            MatchHandler.CurrentMatch.MatchIdentity == args.Match.MatchIdentity)
        {
            m_TargetGameBoard.gameObject.SetActive(true);
        }
    }
示例#2
0
 private void EventSink_ParticipantSyncEvent(MatchSyncEventArgs args)
 {
     ClientManager.Post(() => SyncMatchParticipants(args.Match));
 }
示例#3
0
 public static void InvokeParticipantSyncEvent(MatchSyncEventArgs args)
 {
     ParticipantSyncEvent?.Invoke(args);
 }
 private void EventSink_ParticipantSyncEvent(MatchSyncEventArgs args)
 {
     ClientManager.Post(() => StartCoroutine(QueryBoardDisplay(args)));
 }