папочка навёл порядок в папках

This commit is contained in:
vladislove committed 2026-07-20 21:07:50 +03:00
1 parent 9374a984e6
commit b407380203
1123 files changed
+2764 -133233

No files matched your search

@@ -0,0 +1,31 @@
using UnityEngine;
using UnityEngine;
public class CameraFollow : MonoBehaviour
{
public Transform target;
private Vector3 _offset;
void Start()
{
if (target != null)
{
_offset = transform.position - target.position;
}
else
{
Debug.LogError("Камера: не назначен объект Target!");
}
}
void LateUpdate()
{
if (target != null)
{
transform.position = target.position + _offset;
}
}
}