public void SwitchTarget(BagSystem bag)
        {
            if (!System.Object.ReferenceEquals(null, bag) &&
                !System.Object.ReferenceEquals(bag, Bag))
            {
                Bag = bag;

                ClearItems();

                LoadBagContent(Bag);
            }
        }
        private void LoadBagContent(BagSystem bag)
        {
            if (System.Object.ReferenceEquals(null, bag))
            {
                return;
            }

            Bag.OnAddItem    += OnItemAdd;
            Bag.OnRemoveItem += OnItemRemove;
            Bag.OnItemChange += OnItemChange;

            List <InteractItem> items = Bag.GetAllItems();

            foreach (var item in items)
            {
                AddItem(item);
            }
        }
        private void LoadUIContent()
        {
            if (!IsUIElementsReady)
            {
                return;
            }

            UILord.Instance.CurBagUI = this;

            SimWood sw = (SimWood)EntityManager.Instance.PlayerEntity;

            if (!System.Object.ReferenceEquals(null, sw))
            {
                Bag = sw.Bag;
                UILord.Instance.CurBag = Bag;

                LoadBagContent(Bag);
            }
        }