Exemplo n.º 1
0
        private void RunRefreshItemEvent(GridUnitRefreshItemsEvent e)
        {
            if (e == null)
            {
                return;
            }

            RefreshItemIcon(e.itemID, e.itemCount);
        }
Exemplo n.º 2
0
        public void OnItemPicked()
        {
            GridUnitRefreshItemsEvent e = GridUnitEvent.CreateEvent <GridUnitRefreshItemsEvent>(GridUnitEventType.RefreshItems, this);

            e.itemID    = gridItem.item.itemID;
            e.itemCount = 0;
            battleMap.battleField.AppendBattleAction(e);

            gridItem = null;
        }