You've already forked super-mario-bros
mirror of
https://github.com/izzy2lost/super-mario-bros.git
synced 2026-03-26 16:58:05 -07:00
14 lines
259 B
C#
14 lines
259 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class CallOnCollision : MonoBehaviour
|
|
{
|
|
public EventTrigger.TriggerEvent callback;
|
|
|
|
private void OnTriggerEnter2D(Collider2D col)
|
|
{
|
|
callback.Invoke(null);
|
|
}
|
|
}
|