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); }