alotta upgrade stuff but no upgrades
This commit is contained in:
parent
b9fb490dce
commit
3b60583c76
35 changed files with 2937 additions and 61 deletions
15
Assets/Scripts/Items/UpgradePickupEffects.cs
Normal file
15
Assets/Scripts/Items/UpgradePickupEffects.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class UpgradePickupEffects : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private UpgradePickup thisPickup;
|
||||
|
||||
public void OnTriggerEnter2D(Collider2D other)
|
||||
{
|
||||
if (other.CompareTag(tag))
|
||||
{
|
||||
thisPickup.PickupEffects();
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue