1
0
forked from akanyan/mu3-mods
Files
mu3-mods/Extras/Offgeki/MU3.Battle/patch_GameEngine.cs
2025-04-01 23:01:04 -06:00

37 lines
1.0 KiB
C#

using MU3.Util;
namespace MU3.Battle;
class patch_GameEngine
{
private Player _player;
private Ally[] _allies;
extern public void orig_createPlayer(StartCutscenePosition startCutscenePos, int charaId);
public void createPlayer(StartCutscenePosition startCutscenePos, int charaId)
{
orig_createPlayer(startCutscenePos, charaId);
if (Singleton<Mod.State>.instance.RemovePlayerGeki && _player)
{
_player.gameObject.SetActive(false);
}
}
extern public void orig_createAlly(int id, StartCutscenePosition startCutscenePos, int charaId, int allyNum);
public void createAlly(int id, StartCutscenePosition startCutscenePos, int charaId, int allyNum)
{
orig_createAlly(id, startCutscenePos, charaId, allyNum);
if (Singleton<Mod.State>.instance.RemoveAllyGekis)
{
foreach (var a in _allies)
{
if (a) {
a.gameObject.SetActive(false);
}
}
}
}
}