mirror of
https://udrimavric.com/MAVRIC/Stratasys-450mc-VR.git
synced 2025-01-23 15:48:33 -05:00
26 lines
711 B
C#
26 lines
711 B
C#
|
using System.Collections.Generic;
|
||
|
using SO;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Managers
|
||
|
{
|
||
|
public class GuideAnimationManager : AnimationManager
|
||
|
{
|
||
|
[SerializeField] private List<GuideObjectsSO> 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);
|
||
|
}
|
||
|
}
|
||
|
}
|