19 lines
365 B
C#
19 lines
365 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace DuloGames.UI
|
|
{
|
|
public class UIGlobeFillInverter : MonoBehaviour
|
|
{
|
|
[SerializeField] private Image m_Image;
|
|
|
|
public void OnChange(float value)
|
|
{
|
|
if (this.m_Image != null)
|
|
{
|
|
this.m_Image.fillAmount = 1f - value;
|
|
}
|
|
}
|
|
}
|
|
}
|