Make enemy chase player when the player has a certain item.

Is it possible to make Enemi AI to chase player if only the player has a certain object? For example, when the player has collected a Diamond, then enemy will automatically chase the player.

Hello.

“Is it possible to make Enemi AI to chase player if only the player has a certain object?”

Yes, it is.

Yes. For example: in player script you add a public Boolean variable to become true when a diamond is collected. In enemy script you check if player has this variable true. If true, then you make the enemy move towards to the player position in Update function.