Created
June 9, 2016 18:20
-
-
Save Adamcbrz/18fd6612be67f99ac9b7ab5f870f8cc7 to your computer and use it in GitHub Desktop.
Unity Generic Event
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
public class UnityGenericEvent<T0> : UnityEvent<T0> { } | |
public class UnityGenericEvent<T0, T1> : UnityEvent<T0, T1> { } | |
public class UnityGenericEvent<T0, T1, T2> : UnityEvent<T0, T1, T2> { } | |
public class UnityGenericEvent<T0, T1, T2, T3> : UnityEvent<T0, T1, T2, T3> { } | |
Then all you have to do is create events like: | |
public UnityGenericEvent<bool> onChange = new UnityGenericEvent<bool>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment