public void SetModelessDialog(Dialog modelessDialog) { foreach (Dialog d in this.modelessDialog) { d.SetActive(false); } this.modelessDialog.Add(modelessDialog); if (modalDialog != null) { modelessDialog.SetActive(false); } else { modelessDialog.SetActive(true); } modelessDialog.SetShowType(EShowType.Modeless); }
public void DropModelessDialog(Dialog toBeDropped) { for (int i = 0; i < modelessDialog.Count; ++i) { if (modelessDialog[i] == toBeDropped) { toBeDropped.SetActive(false); toBeDropped.SetShowType(EShowType.None); modelessDialog[i] = modelessDialog[modelessDialog.Count - 1]; modelessDialog.RemoveAt(modelessDialog.Count - 1); } } }