Ejemplo n.º 1
0
 /// <summary>
 /// Sets an animator integer value
 /// </summary>
 /// <param name="animator">animator</param>
 /// <param name="property">integer property</param>
 /// <param name="value">value to set</param>
 public static void SetInteger(Animator animator, AnimatorPropertyHolder property, int value)
 {
     animator.SetInteger((int)property, value);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets an animator boolean value
 /// </summary>
 /// <param name="animator">animator</param>
 /// <param name="property">boolean property</param>
 /// <param name="value">value to set</param>
 public static void SetBoolean(Animator animator, AnimatorPropertyHolder property, bool value)
 {
     animator.SetBool((int)property, value);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets an animator float value
 /// </summary>
 /// <param name="animator">animator</param>
 /// <param name="property">float property</param>
 /// <param name="value">value to set</param>
 public static void SetFloat(Animator animator, AnimatorPropertyHolder property, float value)
 {
     animator.SetFloat((int)property, value);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets an animator trigger
 /// </summary>
 /// <param name="animator">animator</param>
 /// <param name="property">trigger property</param>
 public static void SetTrigger(Animator animator, AnimatorPropertyHolder property)
 {
     animator.SetTrigger((int)property);
 }