using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class StepInit : MonoBehaviour { public UnityEvent eventScript; public void Init() { if (eventScript != null) { eventScript.Invoke(); } } }