int m_clickCntMax = 3; //关闭需要的点击次数 public PopErrorReport() { m_popId = POP_ID.ERROR_REPORT; m_layerIdx = POP_LAYER_IDX.LAYER_TOP; ShowGameObject(); m_btn = GetChildByName <KButton>("Container_ErrorReport/Container_Panel/Button_Center"); m_text = GameObjUtil.FindChlid <KText>(m_btn.gameObject, "Label_Text"); }