Example #1
0
 private void OnPlayerStateChanged(IConnectedPlayer player)
 {
     if (starting)
     {
         if (_sessionManager.connectedPlayers.All(IsPlayerReady) && _sessionManager.LocalPlayerHasState("start_primed"))
         {
             Plugin.Log.Debug("All players ready, starting game.");
             StartLevel();
         }
     }
 }
 public bool LocalPlayerHasState(string state) => _sessionManager.LocalPlayerHasState(state);