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
30 lines
665 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|