Scriptum/Assets/Scripts/LevelBar.cs

26 lines
427 B
C#
Raw Permalink Normal View History

2022-10-23 00:21:54 +02:00
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()
{
}*/
}