public static void Refocus() { if (!Active) { return; } AddCharacterWindow window = GetWindow <AddCharacterWindow>(); PositionWindow(window); window.ShowPopup(); }
public static void Open(DS_Conversation conversation) { if (conversation == null) { return; } Conversation = conversation; Active = true; AddCharacterWindow window = ScriptableObject.CreateInstance <AddCharacterWindow>(); Vector2 windowSize = new Vector2(windowwidth, window_height); window.minSize = windowSize; window.maxSize = windowSize; PositionWindow(window); window.ShowPopup(); }