You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using UnityEngine; |
|
using UIWidgets; |
|
|
|
[RequireComponent(typeof(Progressbar))] |
|
public class SampleProgressbar : MonoBehaviour |
|
{ |
|
void Start() |
|
{ |
|
var bar = GetComponent<Progressbar>(); |
|
bar.TextFunc = x => { |
|
return string.Format("Exp to next level: {0} / {1}", x.Value, x.Max); |
|
}; |
|
} |
|
|
|
}
|
|
|