Exemple #1
0
    public void StartServer()
    {
        Debug.Log("Staring server.");

        m_com.Initialize();

        m_state = WaitingForPlayers.Get();
    }
Exemple #2
0
    public static WaitingForPlayers Get()
    {
        if (m_instance == null)
        {
            m_instance = new WaitingForPlayers();
        }

        return(m_instance);
    }
Exemple #3
0
 /// <summary>
 /// Called before waiting for players.
 /// </summary>
 public static void OnWaitingForPlayers() => WaitingForPlayers.InvokeSafely();
Exemple #4
0
 private void UnpatchCompilerMess() => WaitingForPlayers.Unpatch();
Exemple #5
0
 private void UnpatchCompilerMess()
 {
     UsedMedicalItem.Unpatch();
     WaitingForPlayers.Unpatch();
 }
Exemple #6
0
        public static void InvokeWaitingForPlayers()
        {
            WaitingForPlayers waitingForPlayers = WaitingForPlayersEvent;

            waitingForPlayers?.Invoke();
        }