using UnityEngine; public class LevelLoadedEventSender : MonoBehaviour { private void Start() { EventManager.Send(new LevelLoadedEvent(Singleton.Instance.GetGameState())); UnityEngine.Object.Destroy(base.gameObject); } }