using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace MyCollections.SceneManagement { public class LoadingProgress : IProgress<float> { public event Action<float> OnProgress; const float ratio = 1f; public void Report(float value) => OnProgress?.Invoke(value / ratio); } }