- Home /
This question was
closed Dec 07, 2013 at 10:41 PM by
meat5000 for the following reason:
Duplicate Question
How to make it so enemies only move towards the player when the player is colliding with an object
It's more so when you touch an object with the tag "light" then any object with the tag "enemy" will become active and move towards the player.
Comment
Answer by EX_Darius · Dec 05, 2013 at 11:25 AM
One way of doing this is by finding your GameObject "Player" ex:
Player = GameObject.Find("Player");
Afterwards using the Player.transform.position as target position.