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"); } }
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"); } }
public override State Update(float delta) { timePassed += delta; if (timePassed >= timer) { Global global = (Global)controller.GetNode("/root/Global"); global.GotoScene("res://Scenes/MainMenu.tscn"); return(null); } return(this); }
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"); }