r2mods/ilspy_dump/ror2_csproj/EntityStates.TeleporterHeal.../TeleporterHealNovaWindup.cs

27 lines
568 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine;
namespace EntityStates.TeleporterHealNovaController;
public class TeleporterHealNovaWindup : BaseState
{
public static GameObject chargeEffectPrefab;
public static float duration;
public override void OnEnter()
{
base.OnEnter();
EffectManager.SimpleEffect(chargeEffectPrefab, base.transform.position, Quaternion.identity, transmit: false);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.isAuthority && duration <= base.fixedAge)
{
outer.SetNextState(new TeleporterHealNovaPulse());
}
}
}