Can you please help me arrange this correctly...
#pragma strict
public var speed = 5f;
function Start () {
}
function Update () {
transform.position.x = (Mathf.PingPong (Time.time * speed, 5.1, 0.9));
}
↧