Exemple #1
0
    //创建TIPS
    public void createMessageLintWindow(string str)
    {
        MessageLineWindow lineWindow = getWindow <MessageLineWindow> ();

        if (lineWindow != null)
        {
            lineWindow.Initialize(str);
        }
        else
        {
            openDialogWindow <MessageLineWindow> ((win) => {
                win.Initialize(str);
            });
        }
    }
Exemple #2
0
    public void createMessageLintWindowNotUnLuck(string str)
    {
        MessageLineWindow lineWindow = getWindow <MessageLineWindow>();

        if (lineWindow != null)
        {
            lineWindow.dialogCloseUnlockUI = false;
            lineWindow.Initialize(str);
        }
        else
        {
            openDialogWindow <MessageLineWindow> ((win) => {
                win.dialogCloseUnlockUI = false;
                win.Initialize(str);
            });
        }
    }
Exemple #3
0
 public void Initialize(MessageLineWindow father, int y, string text)
 {
     targetY      = y;
     fatherWindow = father;
     msgText.text = text;
 }