public static void Show(Vector2 pos, Tag tag, bool fromResembleWindow) { TagPopup window = ScriptableObject.CreateInstance <TagPopup>(); switch (tag.type) { case Tag.Type.Wait: window.position = new Rect(pos.x, pos.y, 250, 88); break; case Tag.Type.Emotion: window.position = new Rect(pos.x, pos.y, 150, 132); break; } window.ShowPopup(); releaseFocusOnclose = fromResembleWindow; TagPopup.tag = tag; btns = new Utils.ButtonState[(int)Emotion.COUNT]; }
private void ShowEditPopupOntag(Tag tag) { TagPopup.Show(GetTagPos(tag), tag, fromOneShootWindow); }