Created
June 12, 2019 14:07
-
-
Save andybak/1ac3ec54b81ccb1992192549bf25cff4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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