Ejemplo n.º 1
0
    public void SetPanelType(UpgradeType type, Enums.RoverUpgradeType r = Enums.RoverUpgradeType.NULL,
                             Enums.ShipUpgradeType s = Enums.ShipUpgradeType.NULL)
    {
        PanelUpgradeType = type;
        roverUpgrade     = r;
        shipUpgrade      = s;

        GetNode <Panel>("Background").GetNode <VBoxContainer>("VBox").GetNode <Button>("UpgradeButton").Text =
            "Upgrade " + (type.Equals(UpgradeType.ROVER) ? "Rover" : "Ship") + "!";
    }
Ejemplo n.º 2
0
 private bool isRover()
 {
     return(PanelUpgradeType.Equals(UpgradeType.ROVER));
 }