r2mods/ilspy_dump/ror2_csproj/EntityStates.VoidJailer/SpawnState.cs

26 lines
511 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine;
namespace EntityStates.VoidJailer;
public class SpawnState : GenericCharacterSpawnState
{
public static GameObject spawnFXPrefab;
public static string spawnFXTransformName;
public override void OnEnter()
{
base.OnEnter();
PlaySpawnFX();
}
private void PlaySpawnFX()
{
if (spawnFXPrefab != null && !string.IsNullOrEmpty(spawnFXTransformName))
{
EffectManager.SimpleMuzzleFlash(spawnFXPrefab, base.gameObject, spawnFXTransformName, transmit: false);
}
}
}