Example #1
0
        private void AnimateHands()
        {
            _rightHandRotationAnimation = _rightHand.RotateAnimation(new UIRotateAnimationSettings
            {
                FromAngle  = 0f,
                ToAngle    = 45f,
                Duration   = 6f,
                EasingType = EasingType.easeInOutBack,
                PlayType   = UIAnimationPlayType.END_FLIP
            });

            _rightHandMoveAnimation = _rightHand.BezierCubicAnimation(new UIBezierCubicAnimationSettings
            {
                Duration    = 5f,
                FirstPoint  = _rightHand.Pos(),
                SecondPoint = _rightHand.Translated(0.2f, 0.3f),
                ThirdPoint  = _rightHand.Translated(0.2f, -0.3f),
                FourthPoint = _rightHand.Pos(),
                PlayType    = UIAnimationPlayType.END_RESET
            });

            _leftHandRotationAnimation = _leftHand.RotateAnimation(new UIRotateAnimationSettings
            {
                FromAngle  = 0f,
                ToAngle    = -45f,
                Duration   = 6f,
                EasingType = EasingType.easeInOutBack,
                PlayType   = UIAnimationPlayType.END_FLIP
            });

            _leftHandMoveAnimation = _leftHand.BezierCubicAnimation(new UIBezierCubicAnimationSettings
            {
                Duration    = 5f,
                FirstPoint  = _leftHand.Pos(),
                SecondPoint = _leftHand.Translated(-0.2f, 0.3f),
                ThirdPoint  = _leftHand.Translated(-0.2f, -0.3f),
                FourthPoint = _leftHand.Pos(),
                PlayType    = UIAnimationPlayType.END_RESET
            });
        }