Esempio n. 1
0
        private void Awake()
        {
            stateMan  = GetComponent <EnemyStateManager>();
            nav       = GetComponent <NavMeshAgent>();
            anim      = GetComponent <Animator>();
            equipMan  = GetComponent <EnemyEquipmentManager>();
            abilities = GetComponent <EnemyAbilities>();

            //ナビゲーションだと動かない限りローテーションが更新されないのでナビゲーションのローテーションは切る
            nav.updateRotation = false;
        }
Esempio n. 2
0
 private void Awake()
 {
     stateMan  = GetComponent <EnemyStateManager>();
     abilities = GetComponent <EnemyAbilities>();
 }