UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"make the camera follow player"
public class FollowPlayer : MonoBehaviour { public Transform player; void Update () { if (player.position.y > transform.position.y) { transform.position = new Vector3(transform.position.x, player.position.y, transform.position.z); } } }