BuildAction.Action C# (CSharp) Method

Action() public method

public Action ( ) : void
return void
    public override void Action()
    {
        SectionMaterial m = ValueStore.selectedMaterial;
        SectionWeapon w = ValueStore.selectedWeapon;
        if(m != null && w != null) {
            SectionAttributes s = new SectionAttributes(m, w);
            if(TurnOrder.myPlayer.GetResources() >= s.GetCost()) {
                //myMenu.on = false;
                ValueStore.helpMessage = "";
                TurnOrder.SendAction(new Build(TowerSelection.GetSelectedTower().towerNum, m, w));
            } else {
                ValueStore.helpMessage = "You don't have enough RP to do that!";
            }
        } else {
            ValueStore.helpMessage = "You must select a material and a weapon type!";
        }
    }
BuildAction