Generation

generate functionTue, 06 Dec 2022

at start attach to the object with the tag "Runner" above 50 cm from it always face the Player Main Camera

public class Runner : MonoBehaviour { private void Start() { transform.position = new Vector3(0, 50, 0); transform.LookAt(Camera.main.transform); } }

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