Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / Managers / LoadingProgress.cs
@Rackday Rackday on 29 Oct 359 bytes Major Update
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);
    }
}