Untitled
public text v1 · immutablefunction LateUpdate () {
if (target) {
if (Input.GetMouseButton(1)){
y = target.eulerAngles.y;
var rotation:Quaternion = Quaternion.Euler(x, y, 0);
transform.rotation = rotation;
}}