Hello, me again. I have a question for my camera script. Now, currently, my code is like:
var target : GameObject;
function Update () {
target = GetComponent(PlayerCreate).clone;
transform.position.x = target.position.x;
transform.position.y = target.position.y;
}
I have an object specified in my 'PlayerCreate' code in the 'clone' var, and i want that object to be what my camera follows... But I'm not sure how to get it to work...