예제 #1
0
        void ShowNext()
        {
            var oldPosition = current.Position;

            current = queue.Peek();
            if (oldPosition != current.Position)
            {
                Hide();
                HiddenEvent += OnHiddenEvent_Show;
            }
            else
            {
                SetCurrentData();
                StartCurrentData();
            }
        }
예제 #2
0
        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();
                }
            }
        }