Карта для игрока

This commit is contained in:
Max_Divizion
2024-06-14 17:04:42 +03:00
parent b42926440f
commit 3c878a97f7
20 changed files with 61 additions and 56 deletions

View File

@ -0,0 +1,15 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FollowTarget : MonoBehaviour
{
[SerializeField] private Transform target;
[SerializeField] private Vector3 offset;
// Update is called once per frame
void Update()
{
transform.position = target.transform.position + offset;
}
}