Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

what is my problem here (again)

$
0
0
can someone please help me with this error Assets/Scripts/camera_motor.cs(11,18): error CS1519: Invalid token ':' in class, record, struct, or interface member declaration This is my code private void :LateUpdate() { Vector3 delta = Vector3.zero; float deltaX = lookAt.position.x - transform.position.x; if (deltaX > boundX || deltaX < -boundX) { if (transform.position.x < lookAt.position.x) { delta.x = deltaX - boundX; } } else { delta.x = deltaX + boundX; } float deltaY = lookAt.position.y - transform.position.y; if (deltaY > boundY || deltaY < -boundY) { if (transform.position y < lookAt.position.y) { delta.y = deltaY - boundy; } } else { delta.y = deltaY + boundY; } transform.position += new Vector3(delta.x, deltaY, 0); } } hope someone can help

Viewing all articles
Browse latest Browse all 2891

Trending Articles