void ShowNext() { var oldPosition = current.Position; current = queue.Peek(); if (oldPosition != current.Position) { Hide(); HiddenEvent += OnHiddenEvent_Show; } else { SetCurrentData(); StartCurrentData(); } }
public void Show(DialogData data, bool clearQueue = false) { if (clearQueue) { queue.Clear(); } queue.Enqueue(data); if (queue.Count == 1) { current = data; if (shown) { SetCurrentData(); StartCurrentData(); } else { StartShowAnimation(); } } }