You've already forked taptap2024_GJ_chidouren
17 lines
368 B
C#
17 lines
368 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace Game.Component
|
|
{
|
|
public class AnimatorStateUpdate : MonoBehaviour
|
|
{
|
|
public Animator Animator;
|
|
public string stateName = "state";
|
|
public int state;
|
|
|
|
private void Update ()
|
|
{
|
|
this.Animator.SetInteger (this.stateName , this.state);
|
|
}
|
|
}
|
|
} |