Skip to content

Instantly share code, notes, and snippets.

@Crushy
Last active August 29, 2015 14:21
Show Gist options
  • Save Crushy/5b190f0d4f06717f1e76 to your computer and use it in GitHub Desktop.
Save Crushy/5b190f0d4f06717f1e76 to your computer and use it in GitHub Desktop.
A (very) simple script that allows you to call all sort of functions when a scene loads.
using UnityEngine;
using UnityEngine.Events;
public class CallFunctionOnStart : MonoBehaviour {
public UnityEvent events;
void Start () {
events.Invoke();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment