public AIHitInfo(AIAttackObject attackObject, AIHitBox hitBox, Collider targetCollider, Vector3 hitPoint) { this.aiattackObject = attackObject; this.aiHitBox = hitBox; this.targetCollider = targetCollider; this.hitPoint = hitPoint; }
/// <summary> /// /// </summary> /// <param name="weaponObject"></param> public void SetAIattackObject(AIAttackObject aiAttackObject) { if (aiAttackObject) { this.aiAttackObject = aiAttackObject; aiAttackObject.aiManager = this; aiAttackObject.SetActiveDamage(false); } }
/// <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); }