Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="weaponObject"></param>
 public void SetAIattackObject(AIAttackObject aiAttackObject)
 {
     if (aiAttackObject)
     {
         this.aiAttackObject      = aiAttackObject;
         aiAttackObject.aiManager = this;
         aiAttackObject.SetActiveDamage(false);
     }
 }
Esempio n. 2
0
    /// <summary>
    /// Set active Multiple Parts to attack
    /// </summary>
    /// <param name="bodyParts"></param>
    /// <param name="type"></param>
    /// <param name="active"></param>
    /// <param name="damageMultiplier"></param>
    public virtual void SetActiveAttack(vAttackType type, bool active = true, int damageMultiplier = 0, string attackName = "")
    {
        this.damageMultiplier = damageMultiplier;
        this.attackName       = attackName;

        if (type == vAttackType.Unarmed)
        {
            aiAttackObject.SetActiveDamage(active);
        }
    }