Exemplo n.º 1
0
 //alpha is ignored and put in another tween
 public LTDescr TweenFillColor(Color c, Color c2, float t)
 {
     if (spline.GetFill() == RageSpline.Fill.Solid)
     {
         return
             (LeanTween.value(
                  this.gameObject,
                  _tweenFillColor,
                  new Vector3(c.r, c.g, c.b),
                  new Vector3(c2.r, c2.g, c2.b),
                  t));
     }
     else
     {
         Debug.Log(this.name + " : Only Solid fill can be tweened");
         return(null);
     }
 }