public override void Initialize(GameObject usingObj) { eneTree = usingObj.GetComponent <BaseEnemyTree>(); status = usingObj.GetComponent <EnemyStatus>(); belgianAI = transform.root.GetComponentInChildren <BelgianAI>(); delayTimer = 0; anim = GetComponent <Animator>(); }
public override void Initialize(GameObject usingObj) { status = usingObj.GetComponent <EnemyStatus>(); belgianAI = usingObj.GetComponentInParent <BelgianAI>(); anim = GetComponent <Animator>(); }