public void StartChasing() { this.state = MeleeEnemyState.CHASING; // Start a new path to the targetPosition, call the the OnPathComplete function // when the path has been calculated (which may take a few frames depending on the complexity) path = null; seeker.StartPath(transform.position, player.transform.position, OnPathComplete); }
public void StartAttacking() { this.state = MeleeEnemyState.ATTACKING; }
public void StartIdle() { this.state = MeleeEnemyState.IDLE; }