BBGamelib.CCScaleTo.update C# (CSharp) Method

update() public method

public update ( float t ) : void
t float
return void
		public override void update (float t)
		{
			// added to support overriding setScale only
			if (FloatUtils.EQ(_startScaleX , _startScaleY) && FloatUtils.EQ(_endScaleX , _endScaleY))
			{
				(_target as CCNode).scale = _startScaleX + _deltaX * t;
			}
			else
			{
				(_target as CCNode).scaleX = _startScaleX + _deltaX * t;
				(_target as CCNode).scaleY = _startScaleY + _deltaY * t;
			}
		}