LunarInfantry/Assets/Core Extensions & Helpers/_Helpers/AnimationCurveHelper.cs
2026-01-02 01:31:54 -08:00

21 lines
No EOL
569 B
C#
Executable file

using System.Collections;
using UnityEngine;
namespace Core.Extensions
{
public static partial class Helper
{
public static AnimationCurve InitializedAnimationCurve => new AnimationCurve().Initialized();
public static AnimationCurve Initialized(this AnimationCurve a)
{
return new AnimationCurve()
{
keys = new Keyframe[2]
{
new Keyframe(0f,1f),
new Keyframe(1f,1f),
}
};
}
}
}