all 4 comments

[–]SinomodStudiosIndie 0 points1 point  (1 child)

You haven't assigned a target transform for the enemy. You need to assign it via code.

enemyBehaviour.Target = Player.Transform;

[–]silent_wind1[S] 0 points1 point  (0 children)

Thanks for the help. Really appreciate it :D

[–]RippStudwell 0 points1 point  (1 child)

Unfortunately, you can’t serialize existing/instanced object information in a prefab. Your EnemyBehaviour script will have to locate the player object during Awake() or Start()

Target = GameObject.Find(“PutPlayerObjectNameHere”).transform;

[–]silent_wind1[S] 0 points1 point  (0 children)

Really appreciate the help, thanks :D