using UnityEngine;
///
/// This class manages the case we are in editor and we want to press play from any scene
/// It takes care of telling the SpawnSystem that the scene is ready since we pressed play from it
/// and it is therefore already loaded
///
public class SceneReadyBroadcaster : MonoBehaviour
{
#if UNITY_EDITOR
[Header("Broadcasting on")]
[SerializeField] private VoidEventChannelSO _OnSceneReady = default;
private void Start()
{
if(GetComponent()._isEditorInitializerMode == true)
{
_OnSceneReady.RaiseEvent();
}
}
#endif
}