Last active
August 29, 2015 14:21
-
-
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.
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 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