예제 #1
0
 public static TweenHandler MainColorTo(this Material material, Color dest, TweenBuilder builder)
 {
     builder.WithTweener(new MaterialColorTweener(material, "_Color", dest));
     return(CoolestTween2.CreateTween(builder));
 }
예제 #2
0
 /* Value tweens */
 public static TweenHandler FloatTo(this Material material, string propertyName, float dest, TweenBuilder builder)
 {
     builder.WithTweener(new MaterialFloatTweener(material, propertyName, dest));
     return(CoolestTween2.CreateTween(builder));
 }
예제 #3
0
 /* Transform tweens */
 public static TweenHandler MoveTo(this Transform transform, Vector3 dest, TweenBuilder builder)
 {
     builder.WithTweener(new TrPositionTweener(transform, dest));
     return(CoolestTween2.CreateTween(builder));
 }
예제 #4
0
 public static TweenHandler ColorTo(this SpriteRenderer spriteRenderer, Color dest, TweenBuilder builder)
 {
     builder.WithTweener(new SpriteColorTweener(spriteRenderer, dest));
     return(CoolestTween2.CreateTween(builder));
 }
예제 #5
0
 /* Color tweens */
 public static TweenHandler ColorTo(this Image image, Color dest, TweenBuilder builder)
 {
     builder.WithTweener(new ImageColorTweener(image, dest));
     return(CoolestTween2.CreateTween(builder));
 }
예제 #6
0
 public static TweenHandler ChangeSizeDelta(this RectTransform transform, Vector2 dest, TweenBuilder builder)
 {
     builder.WithTweener(new TrSizeDeltaTweener(transform, dest));
     return(CoolestTween2.CreateTween(builder));
 }
예제 #7
0
 public static TweenHandler MoveToWaypoints(this Transform transform, Vector3[] path, TweenBuilder builder)
 {
     builder.WithTweener(new TrPositionWaypointsTweener(transform, path));
     return(CoolestTween2.CreateTween(builder));
 }