Exemplo n.º 1
0
    public override void _Ready()
    {
        grid           = GetTree().GetRoot().GetNode("Game/Grid") as Grid;
        turnManager    = GetNode("/root/TurnManager") as TurnManager;
        movementCursor = GetNode("MovementCursor") as MovementCursor;
        playerInput    = GetNode("PlayerInput") as PlayerInput;
        stats          = GetNode("Stats") as Stats;
        inventory      = GetNode("Inventory") as Inventory;
        equipment      = GetNode("Equipment") as EquipmentHolder;

        turnManager.Turns.Add(this);

        SideMenu sideMenu = GetTree().GetRoot().GetNode("Game/CanvasLayer/GUI/SideMenu") as SideMenu;

        sideMenu.SetGUIOnGameStart(this);
    }