예제 #1
0
 void ShowQueueUI()
 {
     if (mOpenQueue.Count > 0)
     {
         OpenUIParam item = mOpenQueue.Dequeue();
         mQueueUI = item.uiName;
         OpenUI(item.uiName, item.param, item.preOpenParam, item.returnUI);
     }
 }
예제 #2
0
    public bool QueueOpenUI(string uiName, object param = null, object preOpenParam = null, string returnUI = null)
    {
        //GameDebug.LogError("QueueOpenUI uiName = " + uiName);
        //if (mQueueUI == null)
        //{
        //    mQueueUI = uiName;
        //    return OpenUI(uiName, param, preOpenParam, returnUI);
        //}

        OpenUIParam item = new OpenUIParam();

        item.uiName       = uiName;
        item.param        = param;
        item.preOpenParam = preOpenParam;
        item.returnUI     = returnUI;

        mOpenQueue.Enqueue(item);

        return(true);
    }