public void PushMsgBar(MsgBar msgBar) { if (msgBarsStack.Count > 0) { msgBarsStack.Peek().OnPause(); } msgBarsStack.Enqueue(msgBar); }
public void PopMsgBar() { if (msgBarsStack.Count <= 0) { return; } MsgBar msgBar = msgBarsStack.Dequeue(); //msgBar.Die(); if (msgBarsStack.Count > 0) { msgBarsStack.Peek().OnResume(); } }