Esempio n. 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);
        }
    }
Esempio n. 2
0
 public void ShowExitDialog()
 {
     DialogueMgr.ShowExitDialogue(DialogClickHandler);
 }