using FOHEART.GlovePlugin;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ItemMoveToPointLogic : FOGestureActionAdatper
{
    [Tooltip("(߶ģ)Ⱦ")]
    public LineRenderer rayLine;

    [Tooltip("(߶ģ)ʼλê")]
    public GameObject rayLineAnchorObj;

    public override LineRenderer getRayLine()
    {
        return rayLine;
    }

    public override GameObject getRayLineAnchorObj()
    {
        return rayLineAnchorObj;
    }

    public override void onGoPoint(Vector3 point, float time)
    {
        // Чλ  ǵ㳬Чʱ
        if (point.y > 10 || Time.time - time > 0.1)
        {
            return;
        }
        // λƶ
        Vector3 newPos = new Vector3(point.x, transform.position.y, point.z);
        transform.position = newPos;
    }

}
