public void ChickBlueprintButton() { if (pressed) { //点击蓝图时,蓝图处于按下状态,则关闭全部面板 self_image.sprite = sp[0]; pressed = false; BC.ClickClosePartInterfaceButton(); ToolCloseBlueprintInterface(); unit_blueprint.menu_open = false; return; } //点击蓝图时,蓝图没有处于按下状态,则打开蓝图并且将除了蓝图外的所有按钮image置为normal self_image.sprite = sp[2]; pressed = true; BC.ClickClosePartInterfaceButton(); ToolOpenBlueprintInterface(); unit_blueprint.menu_open = true; }