Added audio to radios Made dungeon bigger but branch paths shorter Increased lighting chance
34 lines
807 B
C#
34 lines
807 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 {
|
|
|
|
public FloorCleanup[] children;
|
|
|
|
void Reset(){
|
|
children = GetComponentsInChildren<FloorCleanup>();
|
|
}
|
|
|
|
void Awake(){
|
|
DunGenPlus.Managers.DoorwayManager.AddActionHook(DunGenPlus.Components.Scripting.DunGenScriptingHook.OnMainEntranceTeleportSpawned, OnDungeonComplete);
|
|
}
|
|
|
|
public void OnDungeonComplete() {
|
|
var anyChanges = true;
|
|
while(anyChanges) {
|
|
anyChanges = false;
|
|
foreach(var c in children) {
|
|
var lastChanges = c.UpdateRender();
|
|
anyChanges|= lastChanges;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|