r2mods/ilspy_dump/ror2_csproj/RoR2.Scripts.GameBehaviors.UI/ObjectiveStripAnimationPara...

21 lines
517 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System.Collections.Generic;
using UnityEngine;
namespace RoR2.Scripts.GameBehaviors.UI;
public class ObjectiveStripAnimationParams : MonoBehaviour
{
[SerializeField]
protected List<ObjectiveStripAnimationParam> Params;
public float GetParam(string ParamName, float defaultValue)
{
int num = Params.FindIndex((ObjectiveStripAnimationParam objectiveStripAnimationParam) => objectiveStripAnimationParam.Param == ParamName);
if (num >= 0)
{
return Params[num].Value;
}
return defaultValue;
}
}