//确认建造按钮 public void ConfirmBtn() { ConstructionOff(); //关闭建造菜单 //消耗资源 Material.Instance.Numerical -= MaterialPrice; //减去相应的建材 Money.Instance.Numerical -= MoneyPrice; //减去相应的金钱(可负债 //根据类型调用建造函数 fm.Generate(NowType, x, y); }