Example #1
0
 private void Start()
 {
     MyMaterial       = GetComponent <MeshRenderer>().material;
     CachedColorTween = MyMaterial.DOColor(HoverColor, FadeTime);
     CachedColorTween.SetAutoKill(false);
     CachedColorTween.Pause();
 }
Example #2
0
        protected void SetTween(TweenerCore <Vector3, Path, PathOptions> tween)
        {
            if (direction == AnimationDirection.From)
            {
                tween.From();
            }

            tween.SetAutoKill(autoKill);
            tween.SetEase(ease);
            tween.SetRelative(isRelative);
            tween.Pause();
            tweener = tween;
        }