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

Questions about programming?Chat with your personal AI assistant