增加AnimationHiding隐藏动画

This commit is contained in:
monitor1394
2023-07-28 08:08:49 +08:00
parent fc7655fd76
commit f867ac7efd
3 changed files with 37 additions and 0 deletions

View File

@@ -52,6 +52,19 @@ namespace XCharts.Runtime
}
}
public void SetValue(float value)
{
if (m_TargetValue != value)
{
if (!m_ValueEnable)
m_PreviousValue = value;
else
m_PreviousValue = m_CurrentValue;
UpdateStart();
m_TargetValue = value;
}
}
public void SetPosition(ref bool needInteract, Vector3 pos)
{
if (m_TargetPosition != pos)