/// Refresh the UI /// private void RefreshUI() { var typeString = m_objectiveData.m_type.ToString(); m_typeText.SafeText(typeString); m_stateComponent.SafeState(typeString); m_targetText.SafeText(m_objectiveData.m_target.ToString()); m_valueText.SafeText(m_objectiveData.m_value.ToString()); m_amountText.SafeText(m_objectiveData.m_amount.ToString()); }
/// @param callback /// The function to call when the animation is finished /// public void Pop(Action callback = null) { m_stateComponent.SafeState(k_stateNone); m_animator.PlayAnimation(k_animPop, callback); }