You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/D2D_Scripts/UI/LevelMultiplierLabel.cs

17 lines
398 B
C#

using D2D.Common;
using D2D.Gameplay;
using D2D.UI;
namespace D2D
{
public class LevelMultiplierLabel : TrackableValueUI<float>
{
public override TrackableValue<float> FindTrackable() =>
FindObjectOfType<Level>().RewardMultiplier;
protected override string ValueToText(float value)
{
return "x" + base.ValueToText(value);
}
}
}