Last active
December 14, 2018 21:44
-
-
Save tsraveling/11829d01dbb07fb5bbae2153a0b56250 to your computer and use it in GitHub Desktop.
Add invocation to the inspector #unity
This file contains hidden or 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 InvocationClass : MonoBehavior { | |
| public UnityEventGameObject OnClick; | |
| void someMethod() { | |
| OnClick.Invoke(this.gameObject); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment