using UnityEngine; /// /// This class contains the function to call when play button is pressed /// public class StartGame : MonoBehaviour { public LoadEvent onPlayButtonPress; public GameSceneSO[] locationsToLoad; public bool showLoadScreen; public void OnPlayButtonPress() { onPlayButtonPress.Raise(locationsToLoad, showLoadScreen); } }