Beispiel #1
0
    public void SinglePlayerGame()
    {
        ChangeMenu(Menu.Menus.None);
        ChangeMenu(Menu.Menus.HUD);
        Node arenaNode = Arena.ArenaFactory();

        arena = (Arena)arenaNode;
        AddChild(arenaNode);
        arena.Init(true);
    }
Beispiel #2
0
    public static void LocalArena()
    {
        ChangeMenu(Menu.Menus.None);
        ChangeMenu(Menu.Menus.HUD);
        Session ses       = Session.session;
        Node    arenaNode = Arena.ArenaFactory();

        ses.arena = (Arena)arenaNode;
        ses.AddChild(arenaNode);
        ses.arena.Init(true);
    }
Beispiel #3
0
    public void MultiPlayerGame()
    {
        ChangeMenu(Menu.Menus.None);
        Node arenaNode = Arena.ArenaFactory();

        AddChild(arenaNode);
        arena = (Arena)arenaNode;
        arena.Init(false);
        if (netSes.isServer == false)
        {
            ChangeMenu(Menu.Menus.HUD);
        }
    }
Beispiel #4
0
    public static void OnlineArena()
    {
        Session ses = Session.session;

        ChangeMenu(Menu.Menus.None);
        Node arenaNode = Arena.ArenaFactory();

        ses.AddChild(arenaNode);
        ses.arena = (Arena)arenaNode;
        ses.arena.Init(false);

        if (ses.netSes.isServer == false)
        {
            ChangeMenu(Menu.Menus.HUD);
        }
    }