private void Start()
        {
            minEyeBlend = eyes[0].GetBlendShapeWeight(TargetToBendShapeIndex("press"));
            var mouthAnimation = new BlendShapeAnimation(fishSkin, 3, 0, maxBlend, 1.7f, Ease.PingPong.Linear);

            mouthAnimation.Play(-1);
        }
        private void CreateAnimation(float toValue)
        {
            float fromValue = skin.GetBlendShapeWeight(BLEND_DILATE_IDX);

            if (currentAnimation != null)
            {
                currentAnimation.Abort();
            }
            currentAnimation = new BlendShapeAnimation(skin, BLEND_DILATE_IDX, fromValue, toValue, dilateDuration, Ease.Cubic.Out);
            currentAnimation.Play();
        }
        private void StartBlend(string target, bool revert = false)
        {
            int   index               = TargetToBendShapeIndex(target);
            float endValue            = revert ? 0f : maxBlend;
            BlendShapeAnimation tween = new BlendShapeAnimation(fishSkin, index, fishSkin.GetBlendShapeWeight(index), endValue, blendTransition);

            tweens["fish-" + index] = tween;
            tween.Play();

            index = TargetToBendShapeIndex("press");
            if (revert)
            {
                endValue = minEyeBlend;
            }
            for (var i = 0; i < eyes.Length; i++)
            {
                tween = new BlendShapeAnimation(eyes[i], index, fishSkin.GetBlendShapeWeight(index), endValue, blendTransition);
                tweens["eye-" + i + "-" + index] = tween;
                tween.Play();
            }
        }