23 lines
409 B
C#
23 lines
409 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
public class CircleSliderTemp : MonoBehaviour
|
|
{
|
|
|
|
public bool b = true;
|
|
public Image image;
|
|
private bool up = true;
|
|
private float amount;
|
|
public double value;
|
|
|
|
private void Update()
|
|
{
|
|
amount = (float)((float)value + 50) / 150;
|
|
image.fillAmount = amount;
|
|
}
|
|
|
|
}
|
|
|
|
|