Skip to content

Commit

Permalink
formatting cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
prime31 committed Sep 10, 2018
1 parent c81500d commit cfa0ef8
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 96 deletions.
10 changes: 5 additions & 5 deletions Assets/Plugins/GoKit/GoProxyProp.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using UnityEngine;
using System.Collections;

public class GoProxyProp<T>
{

public class GoProxyProp<T>
{
public T value { get; set; }



public GoProxyProp( T startValue )
{
value = startValue;
}

}
}
32 changes: 16 additions & 16 deletions Assets/Plugins/GoKit/GoTweenFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
/// </summary>
public sealed class GoTweenFlow : AbstractGoTweenCollection
{
public GoTweenFlow() : this( new GoTweenCollectionConfig() ) {}
public GoTweenFlow() : this( new GoTweenCollectionConfig() ) { }

public GoTweenFlow( GoTweenCollectionConfig config ) : base( config ) {}
public GoTweenFlow( GoTweenCollectionConfig config ) : base( config ) { }


#region internal Flow management

/// <summary>
/// the item being added already has a start time so no extra parameter is needed
/// </summary>
Expand All @@ -24,23 +24,23 @@ private void insert( TweenFlowItem item )
// early out for invalid items
if( item.tween != null && !item.tween.isValid() )
return;

if( float.IsInfinity( item.duration ) )
{
Debug.LogError( "adding a Tween with infinite iterations to a TweenFlow is not permitted" );
return;
}

if( item.tween != null )
{
if (item.tween.isReversed != isReversed)
if( item.tween.isReversed != isReversed )
{
Debug.LogError( "adding a Tween that doesn't match the isReversed property of the TweenFlow is not permitted." );
return;
}

// ensure the tween isnt already live
Go.removeTween(item.tween);
Go.removeTween( item.tween );

// ensure that the item is marked to play.
item.tween.play();
Expand All @@ -52,32 +52,32 @@ private void insert( TweenFlowItem item )
{
return x.startTime.CompareTo( y.startTime );
} );

duration = Mathf.Max( item.startTime + item.duration, duration );

if (iterations < 0)
if( iterations < 0 )
totalDuration = float.PositiveInfinity;
else
totalDuration = duration * iterations;
}

#endregion


#region Flow management

/// <summary>
/// inserts a Tween and sets it to start at the given startTime
/// </summary>
public GoTweenFlow insert( float startTime, AbstractGoTween tween )
{
var item = new TweenFlowItem( startTime, tween );
insert( item );

return this;
}

#endregion


}

0 comments on commit cfa0ef8

Please sign in to comment.