public static void PopupTaskWindow() { instance = GetWindow <GKToyMakerDialogueCom>(GKToyDialogueMaker._GetDialogueLocalization("Dialogue fragment"), true); _styleCenrer.alignment = TextAnchor.MiddleCenter; _styleRight.alignment = TextAnchor.MiddleRight; instance.minSize = new Vector2(300, 260); instance.maxSize = new Vector2(300, 260); instance._data = null; }
void OnEnable() { if (null == instance) { instance = GetWindow <GKToyMakerDialogueCom>(GKToyDialogueMaker._GetDialogueLocalization("Dialogue fragment"), true); wantsMouseMove = true; minSize = new Vector2(300, 250); maxSize = new Vector2(300, 250); } }
static public new void SelectCom(GKToyNode node) { switch (node.doubleClickType) { // Dialogue. case 2: GKToyMakerDialogueCom.PopupTaskWindow(); GKToyMakerDialogueCom.InitSubData((GKToyDialogue)node); break; default: break; } }
void OnDestroy() { instance = null; }