FiE-Game/Assets/Scripts/Fie/UI/FieSkillTreeReminingSkillPointsUI.cs

20 lines
445 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using UnityEngine;
namespace Fie.UI
{
public class FieSkillTreeReminingSkillPointsUI : MonoBehaviour
{
[SerializeField]
private FieUIConstant2DText _reminingPointsText;
public void InithWithSkillPoint(int skillPoint)
{
_reminingPointsText.replaceMethod = delegate(ref string targetString)
{
targetString = targetString.Replace("___Value1___", skillPoint.ToString());
};
_reminingPointsText.InitializeText();
}
}
}