public void StartServer() { Debug.Log("Staring server."); m_com.Initialize(); m_state = WaitingForPlayers.Get(); }
public static WaitingForPlayers Get() { if (m_instance == null) { m_instance = new WaitingForPlayers(); } return(m_instance); }
/// <summary> /// Called before waiting for players. /// </summary> public static void OnWaitingForPlayers() => WaitingForPlayers.InvokeSafely();
private void UnpatchCompilerMess() => WaitingForPlayers.Unpatch();
private void UnpatchCompilerMess() { UsedMedicalItem.Unpatch(); WaitingForPlayers.Unpatch(); }
public static void InvokeWaitingForPlayers() { WaitingForPlayers waitingForPlayers = WaitingForPlayersEvent; waitingForPlayers?.Invoke(); }