Beispiel #1
0
    public void UseSkill(Vector3 target)
    {
        if (_currentSkill == EHarvestPlayerSkillType.NONE)
        {
            return;
        }
        //	Debug.Log("Use skill: " + _currentSkill + " " + target);

        switch (_currentSkill)
        {
        case EHarvestPlayerSkillType.LIGHT:
            this._UseLight(target);
            break;

        case EHarvestPlayerSkillType.FIREBALL:
            this._UseFireBall(target);
            break;

        case EHarvestPlayerSkillType.BLACKHOLE:
            this._UseBlackhole(target);
            break;
        }

        _currentSkill = EHarvestPlayerSkillType.NONE;
    }
Beispiel #2
0
 protected void _SetSkill(EHarvestPlayerSkillType _skill)
 {
     _currentSkill = _skill;
     _setSkill     = true;
 }