Update Cryville.Common.
This commit is contained in:
@@ -2,16 +2,27 @@
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Cryville.Common.Unity.UI {
|
||||
/// <summary>
|
||||
/// A non-interactive <see cref="Slider" /> that has an internal tweening behaviour.
|
||||
/// </summary>
|
||||
public class ProgressBar : Slider {
|
||||
[SerializeField][Range(0f, 1f)]
|
||||
[Tooltip("The tweening parameter.")]
|
||||
float m_smooth = 0;
|
||||
/// <summary>
|
||||
/// The tweening parameter.
|
||||
/// </summary>
|
||||
public float Smooth {
|
||||
get { return m_smooth; }
|
||||
set { m_smooth = value; }
|
||||
}
|
||||
|
||||
[SerializeField]
|
||||
[Tooltip("The target value.")]
|
||||
float m_targetValue;
|
||||
/// <summary>
|
||||
/// Gets the current displayed value or sets the target value.
|
||||
/// </summary>
|
||||
public override float value {
|
||||
get { return base.value; }
|
||||
set { m_targetValue = value; }
|
||||
|
Reference in New Issue
Block a user