SDM_LethalCompany_Mod/ScarletMansion/ScarletMansion/GamePatch/Components/FloorCleanUpParent.cs
LadyAliceMargatroid 523e7ed898 Added BrachTileBoost system
Added the new coilhead behaviour to the knight
Added treasure room puzzle for bedroom
Changed many LogInfo into LogDebug
Removed jank animator override stuff (no offense)
Changed how treasure rooms lock their doors to work in multiplayer
Removed basement scripts
2024-08-19 02:44:15 -07:00

30 lines
665 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using DunGen;
namespace ScarletMansion {
public class FloorCleanUpParent : MonoBehaviour, IDungeonCompleteReceiver {
public FloorCleanup[] children;
void Reset(){
children = GetComponentsInChildren<FloorCleanup>();
}
public void OnDungeonComplete(Dungeon dungeon) {
var anyChanges = true;
while(anyChanges) {
anyChanges = false;
foreach(var c in children) {
var lastChanges = c.UpdateRender();
anyChanges|= lastChanges;
}
}
}
}
}