//创建TIPS public void createMessageLintWindow(string str) { MessageLineWindow lineWindow = getWindow <MessageLineWindow> (); if (lineWindow != null) { lineWindow.Initialize(str); } else { openDialogWindow <MessageLineWindow> ((win) => { win.Initialize(str); }); } }
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); }); } }
public void Initialize(MessageLineWindow father, int y, string text) { targetY = y; fatherWindow = father; msgText.text = text; }