mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
25 lines
693 B
C#
25 lines
693 B
C#
using NewHorizons.OtherMods.AchievementsPlus.NH;
|
|
|
|
namespace NewHorizons.Components.Volumes
|
|
{
|
|
public class BlackHoleDestructionVolume : DestructionVolume
|
|
{
|
|
public override void Awake()
|
|
{
|
|
base.Awake();
|
|
_deathType = DeathType.BlackHole;
|
|
}
|
|
|
|
public override void VanishProbe(OWRigidbody probeBody, RelativeLocationData entryLocation)
|
|
{
|
|
SurveyorProbe requiredComponent = probeBody.GetRequiredComponent<SurveyorProbe>();
|
|
if (requiredComponent.IsLaunched())
|
|
{
|
|
Destroy(requiredComponent.gameObject);
|
|
ProbeLostAchievement.Earn();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|