2024-09-09 12:27:15 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace BlueWater
|
|
|
|
{
|
|
|
|
public class LiquidInteractionRegion : MonoBehaviour
|
|
|
|
{
|
|
|
|
private void OnTriggerEnter(Collider other)
|
|
|
|
{
|
2024-09-10 10:25:05 +00:00
|
|
|
if (GameManager.Instance.CurrentTycoonPlayer.IsCarriedItem()) return;
|
|
|
|
|
2024-09-12 07:53:16 +00:00
|
|
|
EventManager.OnLiquidRegionEntered?.Invoke();
|
2024-09-09 12:27:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private void OnTriggerExit(Collider other)
|
|
|
|
{
|
2024-09-12 07:53:16 +00:00
|
|
|
EventManager.OnLiquidRegionExited?.Invoke();
|
2024-09-09 12:27:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|