Esempio n. 1
0
        public CursorAnimator()
        {
            //// stage
            //InitStage();

            // internal animator
            _animator = new FrameAnimator();
            _animator.AnimationChangeSignal.Connect(AnimationChangeSlot);
            _animator.FrameChangeSignal.Connect(FrameChangeSlot);
        }
Esempio n. 2
0
        public override void Play()
        {
            //Debug.Log("Package: " + Package);
            if (null == _animator)
                _animator = new FrameAnimator(); //AnimationPackageLoader.Load("Progress/default/package") 

            //Animation animation = (Animation) Package.Get("progress"); //.Clone();
            //_animator.SetAnimation("progress", animation);
            _animator.FrameChangeSignal.Connect(OnFrameChange);
            
            _animator.Package = Package;
            _animator.Play(AnimationId); // "progress"
        }