Exemple #1
0
    public IEnumerator CharacterSelectionGeneration()
    {
        Random.InitState(0);
        GameObject world = new GameObject();

        world.AddComponent <CharacterSelection>();
        CharacterSelection cs = world.GetComponent <CharacterSelection>();

        NetworkServer.Spawn(world);
        cs.CmdGenerateClasses();
        networkManager.LateUpdate();
        yield return(null);
    }