какашки мне в кармашки
This commit is contained in:
1 parent
7fba61f7a0
commit
cbda26dfc0
335 files changed
+51926
-7266
No files matched your search
@@ -235,6 +235,17 @@ public static class LaboratoryLevelGenerator
|
||||
if (enemy == null) enemy = Object.FindAnyObjectByType<BlindMutantAI>()?.gameObject;
|
||||
SetupPatrolWaypoints(labRoot.transform, enemy);
|
||||
|
||||
// Apply EchoCloudMat to all generated props and objects under labRoot
|
||||
if (echoMat != null)
|
||||
{
|
||||
foreach (var r in labRoot.GetComponentsInChildren<Renderer>(true))
|
||||
{
|
||||
var mats = new Material[r.sharedMaterials.Length];
|
||||
for (int i = 0; i < mats.Length; i++) mats[i] = echoMat;
|
||||
r.sharedMaterials = mats;
|
||||
}
|
||||
}
|
||||
|
||||
// 11. Re-bake NavMesh Surface for entire 100x100m facility
|
||||
var navMeshSurface = Object.FindAnyObjectByType<NavMeshSurface>();
|
||||
if (navMeshSurface != null)
|
||||
@@ -245,6 +256,9 @@ public static class LaboratoryLevelGenerator
|
||||
Debug.Log("<color=green>NavMesh successfully baked for the 100x100m complex facility!</color>");
|
||||
}
|
||||
|
||||
// 12. Populate All Sectors and Rooms with Mutants (Roamers, Heavy Swarms, and Room Guards)
|
||||
MutantPopulationSetup.Populate();
|
||||
|
||||
// Mark scene dirty
|
||||
EditorUtility.SetDirty(labRoot);
|
||||
UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty(UnityEditor.SceneManagement.EditorSceneManager.GetActiveScene());
|
||||
|
||||
Reference in new issue
Block a user