コード例 #1
0
    private void HandleMatchInProgLeft_One(string[] segments)
    {
        MatchState match = MatchHandler.GetMatchById(segments[2]);

        if (match != null)
        {
            PlayerState playerState = match.GetPlayerStateById(segments[3]);
            if (playerState != null)
            {
                InterEventDispatcher.InvokeDCFromMatchInProgressEvent
                    (new DCFromMatchInProgressEventArgs(match, playerState));
            }
        }
    }
コード例 #2
0
    private IEnumerator QueryBoardDisplay(SpectatorSyncEventArgs args)
    {
        yield return(new WaitForSeconds(1.0f));

        MatchState match = MatchHandler.GetMatchById(args.MatchId);

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

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

        if (match.InProgress && MatchHandler.CurrentMatch != null &&
            MatchHandler.CurrentMatch.MatchIdentity == match.MatchIdentity)
        {
            m_TargetGameBoard.gameObject.SetActive(true);
        }
    }