Beispiel #1
0
    //离开流程
    public void LeaveFlow(UI_FLOW_TYPE flowType)
    {
        GameDebug.Log("UI离开流程  " + flowType.ToString());

        DestroyFlowWindow(flowType);

        mFlowType = UI_FLOW_TYPE.UI_FLOW_INVAID;
    }
Beispiel #2
0
 public void EnterFlow(UI_FLOW_TYPE flowType)
 {
     if (mFlowType != flowType)
     {
         mFlowType = flowType;
     }
     GameDebug.Log("UI进入流程  " + flowType.ToString());
 }
Beispiel #3
0
    private void DestroyFlowWindow(UI_FLOW_TYPE flowType)
    {
        for (int i = 0; i < mCacheWindows.Length; ++i)
        {
            UIWindow win = mCacheWindows[i];
            if (win == null)
            {
                continue;
            }
            UITableItem item = DataManager.UITable[win.GetName()] as UITableItem;
            //全局 无销毁
            if (item == null || item.flow <= (int)UI_FLOW_TYPE.UI_FLOW_INVAID)
            {
                continue;
            }
            if (item.flow == (int)mFlowType)
            {
                win.Destroy();

                mCacheWindows[i] = null;
            }
        }
    }