示例#1
0
        public override void Add(ITweenHandle tweenHandle)
        {
            tweenHandle.AddOnStartedListener(OnTweenStarted);
            tweenHandle.AddOnCompletedListener(OnTweenCompleted);

            _tweenList.Add((TweenHandle)tweenHandle);
        }
示例#2
0
        private void OnPlayButtonClicked()
        {
            if (_tweenHandle == null)
            {
                // This movement tween will move this transform in world space to the target area.
                _moveObject.transform.Move(
                    _originalPosition,
                    _destination,
                    2,
                    out _tweenHandle,
                    EaseType.BounceOut);

                _tweenHandle.AddOnStartedListener(OnTweenStarted);
                _tweenHandle.AddOnCompletedListener(OnTweenCompleted);
                _tweenHandle.Play();
            }
            else
            {
                _tweenHandle.Play();
            }
        }