chenxin
2020-11-20 f0838fb72de9f31aeda9e9da869b389618a4fa24
Assets/Scripts/UI/FlyImage.cs
@@ -73,11 +73,11 @@
        tmpV.x -= UnityEngine.Random.Range(10, 15);
        if (isUp)
        {
            tmpV.z += UnityEngine.Random.Range(20, 40);
            tmpV.z += UnityEngine.Random.Range(10, 20);
        }
        else
        {
            tmpV.z -= UnityEngine.Random.Range(20, 40);
            tmpV.z -= UnityEngine.Random.Range(10, 20);
        }
        return tmpV;
@@ -88,12 +88,17 @@
    /// </summary>
    private void Bezier_Move()
    {
        transform.DOMove(point[index], 0.01f).OnComplete(Bezier_Move);
        index++;
        if (index >= point.Count)
        if (index + 3 >= point.Count)
        {
            //到终点了
            Close();
            return;
        }
        else
        {
            transform.DOMove(point[index], 0.01f).OnComplete(Bezier_Move);
            index += 3;
        }
    }