Exemplo n.º 1
0
    public static void ShowInformation(string title, string body)
    {
        Event e = new Event();

        e.SetOnEventTriggerMethod(delegate()
        {
            InformationWindow window = ObjectPool.Get <InformationWindow>();
            window.Show(title, body);
            window.isEvent = true;
            window.GetComponent <Canvas>().sortingOrder = 100;
        });
    }
Exemplo n.º 2
0
    public static void ShowInformation(string title, string body, bool isEvent, string tag)
    {
        if (isEvent)
        {
            ShowInformation(title, body);
        }
        else
        {
            if (activeWindows.Contains(tag))
            {
                return;
            }

            InformationWindow window = ObjectPool.Get <InformationWindow>();
            window.Show(title, body);
            window.isEvent = false;
            window.wtag    = tag;
            window.GetComponent <Canvas>().sortingOrder = 101;
            activeWindows.Add(tag);
        }
    }