using UnityEngine; public class AnimatorEventRelay : MonoBehaviour { private PlayerController _playerController; private void Awake() { _playerController = GetComponentInParent<PlayerController>(); } public void PlayAttackEffect() { _playerController?.PlayAttackEffect(); } }