r2mods/ilspy_dump/ror2_csproj/EntityStates.Engi.MineDeployer/BaseMineDeployerState.cs

25 lines
503 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System.Collections.Generic;
using UnityEngine;
namespace EntityStates.Engi.MineDeployer;
public class BaseMineDeployerState : BaseState
{
public static List<BaseMineDeployerState> instancesList = new List<BaseMineDeployerState>();
public GameObject owner { get; private set; }
public override void OnEnter()
{
base.OnEnter();
owner = base.projectileController?.owner;
instancesList.Add(this);
}
public override void OnExit()
{
instancesList.Remove(this);
base.OnExit();
}
}