18 lines
263 B
C#
18 lines
263 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace BitStrap
|
|
{
|
|
[Serializable]
|
|
public class TriggerAnimationParameter : AnimationParameter
|
|
{
|
|
public void Set(Animator animator)
|
|
{
|
|
if (animator.isInitialized)
|
|
{
|
|
animator.SetTrigger(base.Index);
|
|
}
|
|
}
|
|
}
|
|
}
|