Esempio n. 1
0
 public AIHitInfo(AIAttackObject attackObject, AIHitBox hitBox, Collider targetCollider, Vector3 hitPoint)
 {
     this.aiattackObject = attackObject;
     this.aiHitBox       = hitBox;
     this.targetCollider = targetCollider;
     this.hitPoint       = hitPoint;
 }
Esempio n. 2
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. 3
0
    /// <summary>
    /// Init properties
    /// </summary>
    protected virtual void Init()
    {
        fighter = gameObject.GetMeleeFighter();
        if (this.aiAttackObject == null)
        {
            this.aiAttackObject = GetComponentInChildren <AIAttackObject>();
        }

        var attackObject = this.aiAttackObject.GetComponent <AIAttackObject>();

        attackObject.aiManager = this;
        attackObject.SetActiveDamage(false);
    }