22 lines
364 B
C#
22 lines
364 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class SliderValuePass : MonoBehaviour {
|
|
|
|
Text progress;
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
progress = GetComponent<Text>();
|
|
|
|
}
|
|
|
|
public void UpdateProgress (float content) {
|
|
progress.text = Mathf.Round( content*100) +"%";
|
|
}
|
|
|
|
|
|
}
|