Exemplo n.º 1
0
    void OnMouseDown()
    {
        _fight.boxAct.gameObject.SetActive(false);

        switch (_fight.currentAction)
        {
        case OptionType.Item:
            Debug.Log("use item:" + _item.name);

            _fight.SetTargets(_item.target);
            _fight.currentAction = _action;
            _fight.currentItem   = _item;

            break;

        case OptionType.Special:
            Debug.Log("use skill:" + _skill.name);

            _fight.SetTargets(_skill.target);
            _fight.currentAction = _action;
            _fight.currentSkill  = _skill;

            break;
        }
    }
Exemplo n.º 2
0
 void OnMouseDown()
 {
     _fight.SetTargets(TargetTypes.Unknown);
     if (_ready)
     {
         SetSelected(!_selected);
     }
 }