Ejemplo n.º 1
0
 private void Awake()
 {
     navMeshAgent    = GetComponent <NavMeshAgent>();
     physicsCollider = GetComponent <SphereCollider>();
     particleManager = GetComponent <ParticleManager>();
     animator        = GetComponent <Animator>();
     audioSource     = GetComponent <AudioSource>();
     //meshRenderer = GetComponent<SkinnedMeshRenderer>();
     enemyInfo = enemyData.enemyInfo;
 }
Ejemplo n.º 2
0
    // public AudioClip DamageClip;

    private void Awake()
    {
        navMeshAgent      = GetComponent <NavMeshAgent>();
        animator          = GetComponent <Animator>();
        attackSystem      = GetComponent <AttackSystem>();
        objectPoolManager = GetComponent <ObjectPoolManager>();
        getHitComponent   = GetComponent <GetHitComponent>();
        particleManager   = GetComponent <ParticleManager>();
        capsuleCollider   = GetComponent <CapsuleCollider>();
        enemyInfo         = enemyData.enemyInfo;
        CreatAttackDisInfoCollection();
    }