private void Start()
        {
            SpriterEntity entity      = SpriterData.Spriter.Entities[EntityIndex];
            AudioSource   audioSource = gameObject.GetComponent <AudioSource>();

            Animator = new UnityAnimator(entity, ChildData, audioSource, Ppu);
            RegisterSpritesAndSounds();

            if (UseNativeTags)
            {
                defaultTag = gameObject.tag;
            }

            Animator.Update(0);
        }
Пример #2
0
        public void Start()
        {
            SpriterEntity entity      = SpriterData.Spriter.Entities[EntityIndex];
            AudioSource   audioSource = gameObject.GetComponent <AudioSource>();

            Animator = new UnityAnimator(entity, ChildData, audioSource);
            //Debug.Log("Animator: " + Animator);
            //Animator.CurrentAnimation = ;
            RegisterSpritesAndSounds();

            if (UseNativeTags)
            {
                defaultTag = gameObject.tag;
            }

            Animator.Update(0);
        }