コード例 #1
0
    public void SetConfirmWindow(string info, UnityAction confirmAction)
    {
        ConfirmWindow script = confirmWindow.GetComponent <ConfirmWindow>();

        script.ChangeConfirmFunction(confirmAction);
        script.SetMessage(info);
        confirmWindow.SetActive(true);
    }
コード例 #2
0
    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);
    }
コード例 #3
0
 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();
         }
     }
 }