void Awake() { anim = GetComponentInChildren<SkeletonAnimation>(); move = GetComponent<EnemyMove>(); AI = GetComponent<EnemyAI>(); collision = GetComponent<EnemyCollisionState>(); }
private void Awake() { Move = GetComponent <EnemyMove>(); Look = GetComponent <EnemyLook>(); Patrol = GetComponent <EnemyPatrol>(); Chase = GetComponent <EnemyChase>(); agent = GetComponent <NavMeshAgent>(); state = EnemyStates.Idle; lastState = EnemyStates.Idle; }
// Use this for initialization protected override void Awake() { base.Awake(); enemyMove = GetComponent<EnemyMove>(); coneRend = GetComponentInChildren<SpriteRenderer>(); }