Ive posted it in questions, but there were no useful help — still I think that
s a good matter do discuss.
I`m creating a new object with intantiate and then I want my player object to immediatelly look at it.
transform.LookAt(gameObject.Find("Object(Clone)"));
Heres what I
m using and it doesn`t work.
There are a lot of ways that I found in web to try and do it, none of them worked.
The easiest way is create a new variable and call it the clone. But its object type has to be Transform. so that it could be used with LookAt — and it isnt creating that way.
If I try and use GameObject type LookAt doesnt work.
What should I do?
Please give a suggestion for JavaScript.