Beispiel #1
0
    public override void _Ready()
    {
        this.globals = (Autoload)GetNode("/root/Autoload");

        bgm = GetNode("BGM") as AudioStreamPlayer;
        hud = GetNode("HUD") as MenuHUD;

        hud.Connect("StartGame", this, "NewGame");

        SetProcess(false);
        bgm.Play();
    }