26 lines
427 B
C#
26 lines
427 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class LevelBar : MonoBehaviour
|
|
{
|
|
public Slider slider;
|
|
|
|
public void SetStartExp(float exp)
|
|
{
|
|
slider.maxValue = 20;
|
|
//slider.value = exp;
|
|
}
|
|
|
|
public void SetExp(float exp)
|
|
{
|
|
slider.value = exp;
|
|
}
|
|
|
|
/* public void SetLevel()
|
|
{
|
|
|
|
}*/
|
|
}
|