コード例 #1
0
        public static void Open(DialogOptionNode node)
        {
            _node     = node;
            _database = DialogOptionDatabaseLoader.Load();
            DialogOptionSearchWindow window = CreateInstance <DialogOptionSearchWindow>();

            window.titleContent = new GUIContent("Dialog Option Search");
            Vector2 mouse = GUIUtility.GUIToScreenPoint(Event.current.mousePosition);
            Rect    r     = new Rect(mouse.x - 450, mouse.y + 10, 10, 10);

            window.ShowAsDropDown(r, new Vector2(500, 300));
        }
コード例 #2
0
        private void Initialize()
        {
            if (_isInitialize)
            {
                return;
            }

            if (_node == null)
            {
                _node = target as DialogOptionNode;
            }

            _isInitialize = true;
        }