using System.Collections.Generic; using SO; using UnityEngine; namespace Managers { public class GuideAnimationManager : AnimationManager { [SerializeField] private List guideObjects; [SerializeField] private AnimationClip turnOffAnimation; protected override void PlayAnimation() { foreach (var item in guideObjects) { if (item.animationClip == animationPlayer.clip) { item.guideObjects.SetActive(true); } } base.PlayAnimation(); animationPlayer.PlayQueued(turnOffAnimation.name); } } }