15 lines
293 B
C#
15 lines
293 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
public class ItemPickupRange : MonoBehaviour
|
|
{
|
|
[SerializeField] private ItemPickup thisItem;
|
|
|
|
private void OnTriggerEnter2D(Collider2D other)
|
|
{
|
|
if (other.CompareTag(tag))
|
|
{
|
|
thisItem.inRange = true;
|
|
}
|
|
}
|
|
}
|