r2mods/ilspy_dump/ror2_csproj/EntityStates.VoidRaidCrab.W.../FireMultiBeamSmall.cs

24 lines
420 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace EntityStates.VoidRaidCrab.Weapon;
public class FireMultiBeamSmall : BaseFireMultiBeam
{
[SerializeField]
public int numFireBeforeFinale;
private int fireIndex;
protected override EntityState InstantiateNextState()
{
if (fireIndex < numFireBeforeFinale - 1)
{
return new FireMultiBeamSmall
{
fireIndex = fireIndex + 1
};
}
return new FireMultiBeamFinale();
}
}