.</p>
<p><strong>Listening to every single frame</strong></p>
<pre><code class="lang-csharp">private AnimationPerformer _performer;

private void OnEnable()
{
    _performer = _animator.Play(&quot;Shoot&quot;);
    _performer.FramePlayed += OnFramePlayed;
}

private void OnDisable()
{
    // Unsubscribing so we avoid memory leaks
    if (_performer !=  null)
        _performer?.FramePlayed -= OnFramePlayed;
}

private void OnFramePlayed(int index, Frame frame)
{
    Debug.Log($&quot;The frame {index} has ju