15 lines
324 B
C#
15 lines
324 B
C#
using UnityEngine;
|
|
|
|
public class UpgradePickupEffects : MonoBehaviour
|
|
{
|
|
[SerializeField] private UpgradePickup thisPickup;
|
|
|
|
public void OnTriggerEnter2D(Collider2D other)
|
|
{
|
|
if (other.CompareTag(tag))
|
|
{
|
|
thisPickup.PickupEffects();
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
}
|