Exemplo n.º 1
0
 public void PushMsgBar(MsgBar msgBar)
 {
     if (msgBarsStack.Count > 0)
     {
         msgBarsStack.Peek().OnPause();
     }
     msgBarsStack.Enqueue(msgBar);
 }
Exemplo n.º 2
0
    public void PopMsgBar()
    {
        if (msgBarsStack.Count <= 0)
        {
            return;
        }
        MsgBar msgBar = msgBarsStack.Dequeue();

        //msgBar.Die();
        if (msgBarsStack.Count > 0)
        {
            msgBarsStack.Peek().OnResume();
        }
    }