mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
21 lines
603 B
C#
21 lines
603 B
C#
using NewHorizons.External.Modules.Volumes.VolumeInfos;
|
|
using OWML.Utils;
|
|
using UnityEngine;
|
|
|
|
namespace NewHorizons.Builder.Volumes
|
|
{
|
|
public static class DestructionVolumeBuilder
|
|
{
|
|
public static DestructionVolume Make(GameObject planetGO, Sector sector, DestructionVolumeInfo info)
|
|
{
|
|
var volume = VanishVolumeBuilder.Make<DestructionVolume>(planetGO, sector, info);
|
|
|
|
volume._deathType = EnumUtils.Parse<DeathType>(info.deathType.ToString(), DeathType.Default);
|
|
|
|
volume.gameObject.SetActive(true);
|
|
|
|
return volume;
|
|
}
|
|
}
|
|
}
|