예제 #1
0
 void Awake()
 {
     anim = GetComponentInChildren<SkeletonAnimation>();
     move = GetComponent<EnemyMove>();
     AI = GetComponent<EnemyAI>();
     collision = GetComponent<EnemyCollisionState>();
 }
예제 #2
0
        private void Awake()
        {
            Move   = GetComponent <EnemyMove>();
            Look   = GetComponent <EnemyLook>();
            Patrol = GetComponent <EnemyPatrol>();
            Chase  = GetComponent <EnemyChase>();

            agent = GetComponent <NavMeshAgent>();

            state     = EnemyStates.Idle;
            lastState = EnemyStates.Idle;
        }
예제 #3
0
 // Use this for initialization
 protected override void Awake()
 {
     base.Awake();
     enemyMove = GetComponent<EnemyMove>();
     coneRend = GetComponentInChildren<SpriteRenderer>();
 }