using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace MoreMountains.Tools
{
///
/// A very simple class, meant to be used within a MMSceneLoading screen, to update the fill amount of an Image
/// based on loading progress
///
public class MMSceneLoadingImageProgress : MonoBehaviour
{
protected Image _image;
///
/// On Awake we store our Image
///
protected virtual void Awake()
{
_image = this.gameObject.GetComponent();
}
///
/// Meant to be called by the MMSceneLoadingManager, turns the progress of a load into fill amount
///
///
public virtual void SetProgress(float newValue)
{
_image.fillAmount = newValue;
}
}
}