Ejemplo n.º 1
0
        public override string ToString()
        {
            string tmp = "";

            if (ValidCardTypes == null)
            {
                tmp += TypeOfTarget.ToString();
            }
            else
            {
                tmp += ValidCardTypes.ToString();
            }

            if (HavingAbilities != null)
            {
                tmp += " having " + HavingAbilities.ToString();
            }

            if (WithoutAbilities != null)
            {
                tmp += " without " + WithoutAbilities.ToString();
            }

            return(tmp);
        }
Ejemplo n.º 2
0
 public void ClickedData(string objectN, TypeOfTarget type, ClickedHack obj)
 {
     if (data.disableControls)
     {
         return;
     }
 }
Ejemplo n.º 3
0
    public void ClickedData(string objectN, TypeOfTarget type, ClickedHack obj)
    {
        if (disableUI)
        {
            return;
        }

        print(objectN);
        switch (type)
        {
        case TypeOfTarget.FIXER:
            if (currentState != TypeSequence.ITEM_SEARCH)
            {
                break;
            }
            targetItem = obj.transform.localPosition + Vector3.forward * CAM_CLOSENESS;
            ChangeState(TypeSequence.ON_ITEM, true);
            DisableUIOnAnim(.8f);
            DisableUIWhileAnimation(ANIMATION_PAUSE_TO_ITEM);
            focusedItem = obj.objectIdentifier;
            break;

        case TypeOfTarget.ITEM:
        case TypeOfTarget.UI:
            HandleButton(objectN, obj);
            break;

        case TypeOfTarget.UI_INVENTORY:
            if (inventoryLayer == 0)
            {
                HandleInvButton(objectN, obj);
            }
            else
            {
                HandleInv2Button(objectN, obj);
            }
            break;

        default:
            break;
        }
    }