using BNG; using System.Collections; using System.Collections.Generic; using UnityEngine; public class MonumentMini : MonoBehaviour { public MonumentInfo Info; private Grabbable _grabbable; private VFXController _vFXController; private void Awake() { _vFXController = FindObjectOfType(); _grabbable = GetComponent(); } private void OnEnable() { _grabbable.OnUniqueGrabbed.AddListener(ShowVFX); _grabbable.OnReleased.AddListener(HideVFX); } private void OnDisable() { _grabbable.OnUniqueGrabbed.RemoveListener(ShowVFX); _grabbable.OnReleased.RemoveListener(HideVFX); } private void ShowVFX(Grabber grabber) { _vFXController.ShowVFX(transform); } private void HideVFX(Grabber grabber) { _vFXController.HideVFX(); } }