예제 #1
0
    public static bool OnBackPressed()
    {
        if (UtilMgr.IsUntouchable)
        {
            return(false);
        }

        if (mListBackEvent.Count > 0)
        {
            EventDelegate eventDel = mListBackEvent[mListBackEvent.Count - 1];
            RemoveBackEvent();
            eventDel.Execute();
            return(true);
        }
        else
        {
            DialogueMgr.ShowExitDialogue();
            return(false);
        }
    }
예제 #2
0
 public void ShowExitDialog()
 {
     DialogueMgr.ShowExitDialogue(DialogClickHandler);
 }