Ejemplo n.º 1
0
        public string ResetAllPlayersInfos(FormCollection collection)
        {
            foreach (PlayerForDataBase p in dataBase.PlayerinDataBase)
            {
                dataBase.PlayerinDataBase.Remove(p);
            }
            dataBase.SaveChanges();
            PlayerListManager iiii = new PlayerListManager();

            iiii.ClearPlayerList();
            return(true.ToString());
        }
Ejemplo n.º 2
0
    public void Clear()
    {
        beenInitialized = false;

        if (realLobbyManager == null)
        {
            return;
        }

        realLobbyManager.Clear();
        realLobbyManager = null;

        GameObject.Find("HostLobbyCanvas").GetComponent <PlayerListManager>().ClearPlayerList();
        listManager.ClearPlayerList();
    }