youtubestudy/Assets/Script/Follow.cs
2026-01-21 20:39:42 +09:00

16 lines
267 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Follow : MonoBehaviour
{
public Transform target;
public Vector3 offset;
void Update()
{
transform.position = target.position + offset;
}
}