Exemple #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");
     }
 }
Exemple #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");
        }
    }
 private void _on_MultiPlayerButton_button_up()
 {
     WFS.Global global = (WFS.Global)GetNode("/root/Global");
     global.singlePlayer = false;
     global.GotoScene("res://Scenes/AnimationMulti.tscn");
 }
 private void _on_Button_button_up()
 {
     WFS.Global global = (WFS.Global)GetNode("/root/Global");
     global.singlePlayer = true;
     global.GotoScene("res://Scenes/MainMenu.tscn");
 }