Skip to content

Instantly share code, notes, and snippets.

@tsraveling
Last active December 14, 2018 21:44
Show Gist options
  • Save tsraveling/11829d01dbb07fb5bbae2153a0b56250 to your computer and use it in GitHub Desktop.
Save tsraveling/11829d01dbb07fb5bbae2153a0b56250 to your computer and use it in GitHub Desktop.
Add invocation to the inspector #unity
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