28 lines
458 B
C#
28 lines
458 B
C#
using UnityEngine;
|
|
|
|
public class FishAudioEvents : MonoBehaviour
|
|
{
|
|
[Header("Fishes")]
|
|
[Space(10f)]
|
|
public FFish.FishHookEvent OnFishHookUnityEvent;
|
|
|
|
private void OnEnable()
|
|
{
|
|
FFish.OnFishHookUnityEventGlobal += OnFishHookUnity;
|
|
}
|
|
|
|
private void OnDisable()
|
|
{
|
|
FFish.OnFishHookUnityEventGlobal -= OnFishHookUnity;
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
}
|
|
|
|
private void OnFishHookUnity(Transform transform)
|
|
{
|
|
OnFishHookUnityEvent?.Invoke(transform);
|
|
}
|
|
}
|