// Use this for initialization protected void Start() { enemiesSituation = GameObject.FindGameObjectWithTag("EnemyHandler").GetComponent <EnemiesSituation>(); health = GetComponent <Health>(); stateAction = Patrol; patrolPath = GetComponent <PatrolPath>(); pathfinder = GetComponent <EnemyPathfinder>(); }
protected void Awake() { enemyPathfinder = GetComponent <EnemyPathfinder>(); enemyPathfinder.OnPathCompleteEvent.AddListener(OnPathCompleteEvent); }
private void Start() { enemyPathfinder = GetComponent <EnemyPathfinder>(); }