public void AddPop_up(vWindowPop_up pop_up) { if (!pop_ups.Contains(pop_up)) { pop_ups.Add(pop_up); if (!pop_up.gameObject.activeSelf) { pop_up.gameObject.SetActive(true); } } }
public void RemovePop_up(vWindowPop_up pop_up) { try { if (pop_ups.Contains(pop_up)) { pop_ups.Remove(pop_up); if (pop_up.gameObject.activeSelf) { pop_up.gameObject.SetActive(false); } //if (pop_ups.Count > 0) //{ // if (pop_ups[pop_ups.Count - 1]!=null &&!pop_ups[pop_ups.Count - 1].gameObject.activeSelf) // pop_ups[pop_ups.Count - 1].gameObject.SetActive(true); //} } } catch { } }