mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Destroy whole game object
This commit is contained in:
parent
e8b0bf4a6b
commit
1c11c49cae
@ -31,14 +31,14 @@ namespace NewHorizons.Components.Volumes
|
||||
if (_probe == null)
|
||||
{
|
||||
NHLogger.LogError($"How is your scout probe null? Destroying {nameof(StreamingWarpVolume)}");
|
||||
Component.DestroyImmediate(this);
|
||||
GameObject.DestroyImmediate(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
if (streamingGroup == null)
|
||||
{
|
||||
NHLogger.LogError($"{nameof(StreamingWarpVolume)} has no streaming group. Destroying {nameof(StreamingWarpVolume)}");
|
||||
Component.DestroyImmediate(this);
|
||||
GameObject.DestroyImmediate(gameObject);
|
||||
}
|
||||
|
||||
bool probeActive = _probe.IsLaunched() && !_probe.IsAnchored();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user