It can be used to collect gold coins, collect experience, and missiles to attack the enemy's smooth motion transition effect.
Let's see the effect first.
the code
using UnityEngine;
public class BezierCurve : MonoBehaviour
{
public Transform target; // 目标点
public float speed