15 lines
241 B
C#
15 lines
241 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace RPG.Core
|
||
|
|
{
|
||
|
|
public class FollowCamera : MonoBehaviour
|
||
|
|
{
|
||
|
|
[SerializeField] Transform target;
|
||
|
|
|
||
|
|
void LateUpdate()
|
||
|
|
{
|
||
|
|
transform.position = target.position;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|