Files
Hasebe/Assets/Code/Infrastructure/Utils/AnimatorUtil.cs
T

18 lines
475 B
C#

using Code.OfficeGame.BattleMode.Actions;
using UnityEngine;
namespace Code.Infrastructure.Utils
{
public static class AnimatorSnapshotExtensions
{
public static AnimatorSnapshot GetSnapshot(this Animator animator)
{
return AnimatorSnapshot.GetSnapshot(animator);
}
public static void RestoreSnapshot(this Animator animator, AnimatorSnapshot snapshot)
{
snapshot.RestoreTo(animator);
}
}
}