mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Ship Interference
This commit is contained in:
parent
796e02c6a2
commit
c45783bd29
@ -20,6 +20,10 @@ namespace NewHorizons.Components
|
|||||||
{
|
{
|
||||||
InterferenceHandler.OnProbeEnterInterferenceVolume();
|
InterferenceHandler.OnProbeEnterInterferenceVolume();
|
||||||
}
|
}
|
||||||
|
else if (hitObj.CompareTag("ShipDetector"))
|
||||||
|
{
|
||||||
|
InterferenceHandler.OnShipEnterInterferenceVolume();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnTriggerVolumeExit(GameObject hitObj)
|
public override void OnTriggerVolumeExit(GameObject hitObj)
|
||||||
@ -32,6 +36,10 @@ namespace NewHorizons.Components
|
|||||||
{
|
{
|
||||||
InterferenceHandler.OnProbeExitInterferenceVolume();
|
InterferenceHandler.OnProbeExitInterferenceVolume();
|
||||||
}
|
}
|
||||||
|
else if (hitObj.CompareTag("ShipDetector"))
|
||||||
|
{
|
||||||
|
InterferenceHandler.OnShipExitInterferenceVolume();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,14 +10,19 @@ namespace NewHorizons.Handlers
|
|||||||
{
|
{
|
||||||
public static bool _playerInterference;
|
public static bool _playerInterference;
|
||||||
public static bool _probeInterference;
|
public static bool _probeInterference;
|
||||||
|
public static bool _shipInterference;
|
||||||
|
|
||||||
public static bool PlayerHasInterference() => _playerInterference;
|
public static bool PlayerHasInterference() => _playerInterference;
|
||||||
public static bool ProbeHasInterference() => _probeInterference;
|
public static bool ProbeHasInterference() => _probeInterference;
|
||||||
|
public static bool ShipHasInterference() => _shipInterference;
|
||||||
|
|
||||||
public static void OnPlayerEnterInterferenceVolume() => _playerInterference = true;
|
public static void OnPlayerEnterInterferenceVolume() => _playerInterference = true;
|
||||||
public static void OnPlayerExitInterferenceVolume() => _playerInterference = false;
|
public static void OnPlayerExitInterferenceVolume() => _playerInterference = false;
|
||||||
|
|
||||||
public static void OnProbeEnterInterferenceVolume() => _probeInterference = true;
|
public static void OnProbeEnterInterferenceVolume() => _probeInterference = true;
|
||||||
public static void OnProbeExitInterferenceVolume() => _probeInterference = false;
|
public static void OnProbeExitInterferenceVolume() => _probeInterference = false;
|
||||||
|
|
||||||
|
public static void OnShipEnterInterferenceVolume() => _shipInterference = true;
|
||||||
|
public static void OnShipExitInterferenceVolume() => _shipInterference = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user