Beispiel #1
0
    public override void _Ready()
    {
        //Referencing all the displays in the UI node for later use
        menu        = GetNode <VBoxContainer>("Menu");
        wait        = GetNode <VBoxContainer>("Wait");
        programming = GetNode <Node2D>("Programming");
        run         = GetNode <Node2D>("Run");
        win         = GetNode <Node2D>("Win");
        lose        = GetNode <Node2D>("Lose");

        SendUIEvent.RegisterListener(ChangeState);
        SendProgramEvent.RegisterListener(GetProgram);
    }
Beispiel #2
0
 public override void Init(Node state)
 {
     base.Init(state);
     SendProgramEvent.RegisterListener(StoreProgram);
     GetProgramEvent.RegisterListener(GetProgram);
 }