init() public method

public init ( string title, string message, Decision dec ) : void
title string
message string
dec Decision
return void
Exemplo n.º 1
0
    // Вывод всплывающего сообщения
    public static void hint(string text)
    {
        if (Display.msg_box == null)
        {
            GameObject msg_box = MessageBox.init();

            add_messge_text(msg_box.transform, text);

            msg_box.GetComponent <MessageBox> ().timer = show_time;

            Display.msg_box = msg_box;
        }
    }
Exemplo n.º 2
0
    // Показ инфо
    public static void show(string text)
    {
        if (Display.msg_box == null)
        {
            GameObject msg_box = MessageBox.init();

            add_messge_text(msg_box.transform, text);

            add_btn_ok(msg_box.transform);

            Display.msg_box = msg_box;
        }
    }
Exemplo n.º 3
0
    // Задать вопрос на подтверждение
    public static void show(string text, MessageBox.callback_delegate callback, object target = null)
    {
        if (Display.msg_box == null)
        {
            GameObject msg_box = MessageBox.init();

            add_messge_text(msg_box.transform, text);

            add_btn_yes(msg_box.transform);
            add_btn_no(msg_box.transform);

            MessageBox msg_box_comp = Display.msg_box.GetComponent <MessageBox> ();

            msg_box_comp.target_object = target;
            msg_box_comp.callback      = callback;

            Display.msg_box = msg_box;
        }
    }