remove unnecessary models in animation folder

player waypoint indicator
walk and idle animations
stop when menu opens
This commit is contained in:
2022-11-16 23:17:02 +02:00
parent de20e774eb
commit b58221dc98
65 changed files with 33062 additions and 642 deletions
+26
View File
@@ -0,0 +1,26 @@
using UnityEngine;
public class CameraPlayerFollow : MonoBehaviour
{
[SerializeField]
private Transform _playerTransform;
private Vector3 _cameraOffset;
[SerializeField]
[Range(0.01f, 1.0f)]
private float _smoothFactor = 0.5f;
// Start is called before the first frame update
void Start()
{
_cameraOffset = transform.position - _playerTransform.position;
transform.LookAt(_playerTransform);
}
void LateUpdate()
{
Vector3 newPosition = _playerTransform.position + _cameraOffset;
transform.position = Vector3.Slerp(transform.position, newPosition, _smoothFactor);
}
}