예제 #1
0
 private void ExcutePopdown(FageUIManager manager, FageUIRequest request)
 {
     Queue queue = manager.GetQueue ();
     if (queue.Count > 0) {
         FageUIPopupMem current = queue.Peek () as FageUIPopupMem;
         this.current = current;
         current.Instantiate (manager.canvas, request.param);
     } else {
         manager.GetRequests ().Dequeue ();
         manager.ReserveState ("FageUIManagerIdle");
         return;
     }
 }
예제 #2
0
    private void ExcutePopdown(FageUIManager manager, FageUIRequest request)
    {
        Queue queue = manager.GetQueue();

        if (queue.Count > 0)
        {
            FageUIPopupMem current = queue.Peek() as FageUIPopupMem;
            this.current = current;
            current.Instantiate(manager.canvas, request.param);
        }
        else
        {
            manager.GetRequests().Dequeue();
            manager.ReserveState("FageUIManagerIdle");
            return;
        }
    }
예제 #3
0
    private void ExcutePush(FageUIManager manager, FageUIRequest request)
    {
        Stack stack = manager.GetStack();

        if (stack.Count > 0)
        {
            FageUIMem current = stack.Peek() as FageUIMem;
            this.current = current;
            current.Instantiate(manager.canvas, request.param);
        }
        else
        {
            manager.GetRequests().Dequeue();
            manager.ReserveState("FageUIManagerIdle");
            return;
        }
    }
예제 #4
0
 private void ExcutePush(FageUIManager manager, FageUIRequest request)
 {
     Stack stack = manager.GetStack ();
     if (stack.Count > 0) {
         FageUIMem current = stack.Peek () as FageUIMem;
         this.current = current;
         current.Instantiate (manager.canvas, request.param);
     } else {
         manager.GetRequests ().Dequeue ();
         manager.ReserveState ("FageUIManagerIdle");
         return;
     }
 }