public void SetConfirmWindow(string info, UnityAction confirmAction) { ConfirmWindow script = confirmWindow.GetComponent <ConfirmWindow>(); script.ChangeConfirmFunction(confirmAction); script.SetMessage(info); confirmWindow.SetActive(true); }
public void SetConfirmWindowDeleteLevel(string Name, string Author) { levelName = Name; author = Author; ConfirmWindow script = confirmWindow.GetComponent <ConfirmWindow>(); script.ChangeConfirmFunction(DeleteLevel); script.SetMessage("delete??"); confirmWindow.SetActive(true); }
private IEnumerator StartWaitConfirmWindowIEnumerator(string m, MessageManagerDelegate CallBack = null) { confirmWindow.SetMessage(m); confirmWindow.gameObject.SetActive(true); wait = true; while (wait) { yield return(new WaitForEndOfFrame()); } confirmWindow.gameObject.SetActive(false); if (confirm) { if (CallBack != null) { CallBack(); } } }