Open ClownfromSubang opened 2 years ago
Camera Follow Player public Vector3 offset = new Vector3(0f, 0f, -10f); private float smoothTime = 0.25f; private Vector3 velocity = Vector3.zero;
[SerializeField] private Transform target;
void FixedUpdate() { Vector3 targetPosition = target.position + offset; transform.position = Vector3.SmoothDamp(transform.position, targetPosition, ref velocity, smoothTime); }
Selanjutnya menambahkan animasi pada karakter agar lebih menarik
Idle Animation
Run Animation
Jump Animation