private void OnClickObject(Selectable selectable, Vector3 pos)
        {
            if (!controls_enabled)
            {
                return;
            }

            if (selectable == null)
            {
                return;
            }

            if (character_craft.IsBuildMode())
            {
                OnClickFloor(pos);
                return;
            }

            if (is_action && can_cancel_action)
            {
                CancelAction();
            }

            selectable.Select();

            //Attack target ?
            Destructible target = selectable.GetDestructible();

            if (target != null && character_combat.CanAutoAttack(target))
            {
                Attack(target);
            }
            else
            {
                InteractWith(selectable, pos);
            }
        }