Example #1
0
 void Awake()
 {
     anim = GetComponentInChildren<SkeletonAnimation>();
     move = GetComponent<EnemyMove>();
     AI = GetComponent<EnemyAI>();
     collision = GetComponent<EnemyCollisionState>();
 }
Example #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;
        }
Example #3
0
 // Use this for initialization
 protected override void Awake()
 {
     base.Awake();
     enemyMove = GetComponent<EnemyMove>();
     coneRend = GetComponentInChildren<SpriteRenderer>();
 }