Esempio n. 1
0
    private static void _ShowTips()
    {
        if (0 == tipsQueue.Count)
        {
            showing = false;
            return;
        }
        showing = true;
        TipsData tips = tipsQueue.Dequeue();

        UIManager.OpenUI("Prefabs/TipsUI", UIManager.Instance.TipsUIRoot, (GameObject obj) =>
        {
            UITips uiTips = obj.GetComponent <UITips>();
            uiTips.StartShow(tips);

            Scheduler.Instance.CreateScheduler("tips" + Function.GetServerTime(), tips.stayTime, 1, 0, (param) => {
                UIManager.CloseUI("Prefabs/TipsUI");
                _ShowTips();
            });
        });
    }