r2mods/ilspy_dump/ror2_csproj/EntityStates.GrandParent/ChannelSunEnd.cs

31 lines
607 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace EntityStates.GrandParent;
public class ChannelSunEnd : ChannelSunBase
{
public static string animLayerName;
public static string animStateName;
public static string animPlaybackRateParam;
public static float baseDuration;
private float duration;
public override void OnEnter()
{
base.OnEnter();
duration = baseDuration / attackSpeedStat;
PlayAnimation(animLayerName, animStateName, animPlaybackRateParam, duration);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && base.fixedAge >= duration)
{
outer.SetNextStateToMain();
}
}
}