Пример #1
0
        public void Play(NPCAnimation.Type type, float normalizedTime = 0f)
        {
            if (!ValidateAnimator())
            {
                return;
            }

            Animator.Play(type.ToString(), BaseLayerIndex, normalizedTime);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public void PlayAnimation(NPCAnimation.Type type)
 {
     Animator.Play(type);
 }