Skip to content

Instantly share code, notes, and snippets.

@andybak
Created June 12, 2019 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andybak/1ac3ec54b81ccb1992192549bf25cff4 to your computer and use it in GitHub Desktop.
Save andybak/1ac3ec54b81ccb1992192549bf25cff4 to your computer and use it in GitHub Desktop.
using UnityEngine;
using UnityEngine.Events;
public class EventTest : MonoBehaviour
{
public Collider myCollider;
public UnityEvent myEvent;
void OnTriggerEnter(Collider other)
{
myEvent.Invoke();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment