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); }

Want to kickstart your project?Use the new AI Studio to create your code