示例#1
0
    /// <summary>
    /// Initalise the gmae by allowing players to join
    /// </summary>
    protected void InitGame()
    {
        gameState = GAME_STATE.WaitingForUsers;

        //Send a chat message
        TwitchChatClient.Instance.SendChatMessage(settings.gameName + " is now open! " + settings.minPlayerCount + " - " + settings.maxPlayerCount + " players must join in the next "
                                                  + settings.maxWaitToStartTime + " seconds");

        //Allow users to join
        playerList?.SetAllowJoin(true);

        //Start countdown
        initTimer = settings.maxWaitToStartTime;
        GameInit?.Invoke();
    }
 /// <summary>
 ///     游戏初始化
 /// </summary>
 public void Init()
 {
     GameInit?.Invoke(this, null);
 }