Exemple #1
0
        public void GridOnMouseDownCallback(GameObject go)
        {
            GridSlot slot = GetGridSlotByGameObject(go);

            if (slot != null)
            {
                if (slot.GetSlotType() == GridSlotManager.GridSlotType.GST_INTERACTABLE)
                {
                    if (slot == selected_grid_slot)
                    {
                        DeselectSelectedSlot();
                    }
                    else
                    {
                        DeselectSelectedSlot();

                        selected_grid_slot = slot;

                        SelectSlot(selected_grid_slot);
                    }
                }
            }
        }