mirror of
https://udrimavric.com/MAVRIC/Stratasys-450mc-VR.git
synced 2025-01-23 07:38:33 -05:00
26 lines
711 B
C#
Executable File
26 lines
711 B
C#
Executable File
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);
|
|
}
|
|
}
|
|
}
|