using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Sensor : MonoBehaviour
{
void Start()
{
}
void Update()
{
if (GetComponent<Fruit>().transform.position == GetComponent<Move>().transform.position)
{
Destroy(GetComponent<Fruit>().gameObject);
}
}
}