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

25 lines
489 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine;
namespace EntityStates.Gup;
internal class SpawnState : GenericCharacterSpawnState
{
public static GameObject spawnEffectPrefab;
public static string spawnEffectMuzzle;
public override void OnEnter()
{
base.OnEnter();
if ((bool)spawnEffectPrefab)
{
EffectManager.SpawnEffect(spawnEffectPrefab, new EffectData
{
origin = FindModelChild(spawnEffectMuzzle).position,
scale = base.characterBody.radius
}, transmit: true);
}
}
}