public void Play(NPCAnimation.Type type, float normalizedTime = 0f) { if (!ValidateAnimator()) { return; } Animator.Play(type.ToString(), BaseLayerIndex, normalizedTime); }
private void AppearNPC(bool ignoreShowAnimation, NPCAnimation.Type animationType) { if (_npc is null) { var go = Game.Game.instance.Stage.npcFactory.Create( NPCId, npcPosition.position, LayerType.UI, 100); _npc = go.GetComponent <NPC>(); } _npc.SpineController.Appear(ignoreShowAnimation ? 0f : .3f); _npc.PlayAnimation(animationType); }
public void PlayAnimation(NPCAnimation.Type type) { Animator.Play(type); }