示例#1
0
        public override void Do(UITransitionPanel panel)
        {
            panel.ExecuteNode(this);

            if (FromPanel)
            {
                panel.Image.color = PanelColor;
                panel.Image.ColorAlpha(0.0f);

                DOTween.Sequence()
                .Append(panel.Image.DOFade(1.0f, FadeInDuration).OnComplete(() =>
                {
                    UIManager.Instance.CloseUI(FromPanel.name);

                    InCompleted.InvokeGracefully();
                }))
                .Append(panel.Image.DOFade(0.0f, FadeOutDuration))
                .OnComplete(() =>
                {
                    OutCompleted.InvokeGracefully();
                    Finish();
                });
            }
            else
            {
                InCompleted.InvokeGracefully();
                panel.Image.color = PanelColor;
                panel.Image.ColorAlpha(1.0f);
                panel.Image.DOFade(0.0f, FadeOutDuration)
                .OnComplete(() =>
                {
                    OutCompleted.InvokeGracefully();
                    Finish();
                });
            }
        }
示例#2
0
 public abstract void Do(UITransitionPanel panel);