public void closeDisbandPopup() { if (this.m_disbandPopup != null) { if (this.m_disbandPopup.Created) { this.m_disbandPopup.Close(); } this.m_disbandPopup = null; } }
private void disbandTroopsClick() { if (base.OverControl != null) { int data = base.OverControl.Data; if (GameEngine.Instance.Village != null) { this.closeDisbandPopup(); this.m_disbandPopup = new DisbandTroopsPopup(); this.m_disbandPopup.init(data); this.m_disbandPopup.Show(); } } }