static TweenParms SetAttributes(NTweenAttributes attributes) { var tweenParms = new TweenParms (); if (attributes != null) { tweenParms.AutoKill (attributes.GetAutoKill ()); if (attributes.GetDelay () > 0) { tweenParms.Delay (attributes.GetDelay ()); } if (attributes.GetLoops () != 0) { tweenParms.Loops (attributes.GetLoops (), GetLoopType (attributes.GetLoopType ())); } if (attributes.GetEaseType () != NTweenEaseType.Linear) { tweenParms.Ease (GetEaseType (attributes.GetEaseType ())); } if (attributes.GetOnComplete () != null) { tweenParms.OnComplete (attributes.GetOnComplete ().Invoke); } if (attributes.GetOnPlay () != null) { tweenParms.OnStart (attributes.GetOnPlay ().Invoke); } if (attributes.GetOnUpdate () != null) { tweenParms.OnUpdate (attributes.GetOnUpdate ().Invoke); } } return tweenParms; }
public object CreateShake(NTweenBuilder builder, NTweenAttributes attributes) { TweenParms parms = SetAttributes (attributes); parms.Prop (builder.GetProperty (), builder.GetTweenValueTo ()); return HOTween.Shake (builder.GetObject (), builder.GetDuration (), parms, attributes.GetAmplitude (), attributes.GetFrequency ()); }
public object CreateTweenTo(NTweenBuilder builder, NTweenAttributes attributes) { var tweenParms = SetAttributes (attributes); tweenParms.Prop (builder.GetProperty (), builder.GetTweenValueTo ()); return HOTween.To (builder.GetObject (), builder.GetDuration (), tweenParms); }
public object CreateTweenTo(NTweenBuilder builder, NTweenAttributes attributes) { throw new System.NotImplementedException (); }