- Home /
This post has been wikified, any user with enough reputation can edit it.
LookAt once
Im trying to make enemy lookAt to the player direction for one time. right now im doing it like this public Transform enemy;
private bool looking = false;
void Update() {
if(enemy.position.x > Range && !looking){
LookAt(Player);
looking = true;
}
}
is there any other way / best way to do this. thanks in advance.
Comment
Your answer
Follow this Question
Related Questions
Need enemy to follow only active character 0 Answers
teleportation problems (2d) 1 Answer
look at player when button pressed 1 Answer
How to prevent Z axis rotation ? 1 Answer
How do I get GameObjects to look at me? 2 Answers