public virtual void Awake()
        {
            //base.Awake();
            lootWindow       = InventoryManager.instance.loot;
            window           = lootWindow.window;
            triggerer        = GetComponent <ObjectTriggerer>();
            triggerer.window = window;
            triggerer.handleWindowDirectly = false; // We're in charge now :)

            animator = GetComponent <Animator>();


            triggerer.OnTriggerUse += () =>
            {
                OpenTreasureChest();
            };
            triggerer.OnTriggerUnUse += () =>
            {
                if (open)
                {
                    window.Hide();

                    open = false;
                }
            };


            CreateGenerator();
        }
        public virtual void Awake()
        {
            //base.Awake();
            lootWindow = InventoryManager.instance.loot;
            window = lootWindow.window;
            triggerer = GetComponent<ObjectTriggerer>();
            triggerer.window = window;
            triggerer.handleWindowDirectly = false; // We're in charge now :)

            animator = GetComponent<Animator>();

            triggerer.OnTriggerUse += () =>
            {
                OpenTreasureChest();
            };
            triggerer.OnTriggerUnUse += () =>
            {
                if (open)
                {
                    window.Hide();

                    open = false;
                }
            };

            CreateGenerator();
        }