LieutenantChampignon/Projet Unity/Lieutenant Champignon/Assets/Scripts/Follow.cs

17 lines
300 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Follow : MonoBehaviour
{
[SerializeField]
private GameObject target;
// Update is called once per frame
void Update()
{
transform.position = target.transform.position;
}
}