Set rotation of enemies coming from spawners

I have several spawners placed around a central point. I’d like the enemies from the spawners to be rotated so that they are facing the central point.

Is there a way to set it so that each enemy picks up the rotation of the spawner it originates from?

Hello.

Yes, its very simple. Something like this (I understand you know how to Instantiate objects):

public GameObect ObjPrefab;

GameObject NewObject = Instantite(ObjPrefab, .....);
NewObject.LookAt(CentralPoint.transform.position);

Byee!

There are several ways to do this:

Spawn in direction facing the center point:

Instantiate (gabeObject, spawner.position, CentralPoint.transform.position - spawner.position);

let it inherrit the parent location.

Instantiate (gameoObject, spawner.position, spawner.Rotation)

or assign it afterwards like tormentoarmagedoom has shown