x


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.

more ▼

asked Jun 11 '12 at 07:38 AM

jquery404 gravatar image

jquery404
21 4 6 8

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1330
x831
x747
x671
x337

asked: Jun 11 '12 at 07:38 AM

Seen: 283 times

Last Updated: Jun 11 '12 at 07:38 AM