CameraFollow
Mon Dec 09 2024 08:59:33 GMT+0000 (Coordinated Universal Time)
Saved by
@iliavial
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollow : MonoBehaviour
{
public Transform target;
public Vector3 offset;
void Update()
{
transform.position = target.position + offset;
}
}
content_copyCOPY
Comments