public void ChangeStatusButton(ButtonElement _but) { switch (_but.Buttonname) { case "BuildButton": EnableUnitBar("UnitBuyBuild"); break; case "SoilderButton": EnableUnitBar("UnitBuySoilder"); break; } _but.ChangeButtonColor(_but); }
public void ChangeStatusButton(ButtonElement _but) { switch (_but.Buttonname) { case "BuildButton": EnableUnitBar("UnitBuyBuild"); break; case "SoilderButton": EnableUnitBar("UnitBuySoilder"); break; } _but.ChangeButtonColor(_but); }