11 lines
216 B
C#
11 lines
216 B
C#
using UnityEngine;
|
|
|
|
public class PlayerFollower : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject _player;
|
|
|
|
private void LateUpdate()
|
|
{
|
|
transform.position = _player.transform.position;
|
|
}
|
|
} |