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