using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IsTarget : MonoBehaviour
{
public GameObject target;
// Start is called before the first frame update
private void OnTriggerEnter(Collider other)
{
target=other.gameObject;
Debug.Log(target.name);
}
}