Generation

generate functionTue, 06 Dec 2022

always set the x and z position with the values of the object with the tag "Runner"

function setPosition (x, z) { transform.position = new Vector3(GameObject.Find("Runner").transform.position.x, 0, GameObject.Find("Runner").transform.position.z); }

Questions about programming?Chat with your personal AI assistant