Example #1
0
        // PUBLIC METHODS: ---------------------------------------------------------------------------------------------

        public CachedPrefabPDWindow(Rect activatorRect, UnityAction <string> callback) //SkillHolderPD itemHolderPropertyDrawer
        {
            this.windowRect = new Rect(
                activatorRect.x,
                activatorRect.y + activatorRect.height,
                activatorRect.width,
                WIN_HEIGHT
                );

            this.inputfieldFocus = true;
            this.scroll          = Vector2.zero;
            this.callback        = callback;
            //this.itemHolderPropertyDrawer = itemHolderPropertyDrawer;

            if (DATABASE == null)
            {
                DATABASE = DatabasePhoton.LoadDatabase <DatabasePhoton>();
            }
        }