Beispiel #1
0
	public Easing setOnEasingComplete( onEasingCompleteDelegate del )
	{
		onEasingComplete += del;
		return this;
	}
Beispiel #2
0
//	public static Easing easeNextFrames(int framesGap, string easingLabel, onEasingCompleteDelegate onComplete)
//	{
//		if(framesGap < 1)
//		{
//			Debug.LogError("Frames gap is " + framesGap + " but should be > 1");
//			return;
//		}
//		
//	}

	public static Easing easeNextFrame(string easingGroup,onEasingCompleteDelegate onComplete)
	{
		Easing es = new Easing();
		es.inValue = 0;
		es.outValue = 1;
		es.easeTime = 0.1f;
		es.easingType = EasingType.Linear;
		es.fn = EasingManager.getFunction( es.easingType );
		es.target = TargetType.floatValue;
		es.easingGroup = easingGroup;
		EasingManager.startEasing( es );
		es.onEasingComplete=onComplete;
		return es;
	}