private void Start() { MyMaterial = GetComponent <MeshRenderer>().material; CachedColorTween = MyMaterial.DOColor(HoverColor, FadeTime); CachedColorTween.SetAutoKill(false); CachedColorTween.Pause(); }
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; }