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

        m_com.Initialize();

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

        return(m_instance);
    }
示例#3
0
文件: Server.cs 项目: iRebbok/EXILED
 /// <summary>
 /// Called before waiting for players.
 /// </summary>
 public static void OnWaitingForPlayers() => WaitingForPlayers.InvokeSafely();
示例#4
0
 private void UnpatchCompilerMess() => WaitingForPlayers.Unpatch();
示例#5
0
 private void UnpatchCompilerMess()
 {
     UsedMedicalItem.Unpatch();
     WaitingForPlayers.Unpatch();
 }
示例#6
0
        public static void InvokeWaitingForPlayers()
        {
            WaitingForPlayers waitingForPlayers = WaitingForPlayersEvent;

            waitingForPlayers?.Invoke();
        }