I am trying to make the enemy chase all the users with specific tag as “Player”, however, the enemy only chases the MASTER CLIENT and not all the other users even though they all have “PLAYER” as a tag.
Can someone help?
void FindTarget() {
target = GameObject.FindWithTag("Player");
}
void Update()
{
FindTarget();
if (target == null) {
FindTarget();
}
else {
-- chase enemy code --
}