mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
25 lines
768 B
C#
25 lines
768 B
C#
using NewHorizons.External.Modules;
|
|
using OWML.Common;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace NewHorizons.Components.Volumes
|
|
{
|
|
internal class LoadCreditsVolume : BaseVolume
|
|
{
|
|
public GameOverModule gameOver;
|
|
public DeathType? deathType;
|
|
public IModBehaviour mod;
|
|
|
|
public override void OnTriggerVolumeEntry(GameObject hitObj)
|
|
{
|
|
if (hitObj.CompareTag("PlayerDetector") && enabled && (string.IsNullOrEmpty(gameOver.condition) || DialogueConditionManager.SharedInstance.GetConditionState(gameOver.condition)))
|
|
{
|
|
NHGameOverManager.Instance.StartGameOverSequence(gameOver, deathType, mod);
|
|
}
|
|
}
|
|
|
|
public override void OnTriggerVolumeExit(GameObject hitObj) { }
|
|
}
|
|
}
|