BBGamelib.CCTintBy.update C# (CSharp) Method

update() public method

public update ( float t ) : void
t float
return void
		public override void update (float t)
		{
			CCRGBAProtocol tn = (CCRGBAProtocol) _target;
			tn.color = new Color32 ((byte)Mathf.RoundToInt( _fromR + _deltaR * t),
			                        (byte)Mathf.RoundToInt(_fromG + _deltaG * t), 
			                        (byte)Mathf.RoundToInt(_fromB + _deltaB * t), 1);
		}