mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
20 lines
568 B
C#
20 lines
568 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class StateAvatarDefaultEmpty : StateMachineBehaviour
|
|
{
|
|
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
{
|
|
BaseMonoAvatar component = animator.GetComponent<BaseMonoAvatar>();
|
|
component.transform.localScale = Vector3.zero;
|
|
}
|
|
|
|
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
{
|
|
BaseMonoAvatar component = animator.GetComponent<BaseMonoAvatar>();
|
|
component.transform.localScale = Vector3.one;
|
|
}
|
|
}
|
|
}
|