Exemplo n.º 1
0
 public override void _Process(float delta)
 {
     timer += delta;
     if (timer >= timerMax)
     {
         WFS.Global global = (WFS.Global)GetNode("/root/Global");
         global.singlePlayer = true;
         global.GotoScene("res://Scenes/SinglePlayerMode.tscn");
     }
 }
Exemplo n.º 2
0
    private void _on_StartButton_button_up()
    {
        WFS.Global global = (WFS.Global)GetNode("/root/Global");

        if (global.singlePlayer)
        {
            global.GotoScene("res://Scenes/SinglePlayerGame.tscn");
        }
        else
        {
            global.GotoScene("res://Scenes/Root.tscn");
        }
    }
Exemplo n.º 3
0
 private void _on_MultiPlayerButton_button_up()
 {
     WFS.Global global = (WFS.Global)GetNode("/root/Global");
     global.singlePlayer = false;
     global.GotoScene("res://Scenes/AnimationMulti.tscn");
 }
Exemplo n.º 4
0
 private void _on_Button_button_up()
 {
     WFS.Global global = (WFS.Global)GetNode("/root/Global");
     global.singlePlayer = true;
     global.GotoScene("res://Scenes/MainMenu.tscn");
 }