public GoTweenConfig materialColor(Color endValue, string colorName = "_Color", bool isRelative = false) { MaterialColorTweenProperty item = new MaterialColorTweenProperty(endValue, colorName, isRelative); _tweenProperties.Add(item); return(this); }
/// <summary> /// material color tween /// </summary> public GoTweenConfig materialColor(Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color, bool isRelative = false) { var prop = new MaterialColorTweenProperty(endValue, colorType, isRelative); _tweenProperties.Add(prop); return(this); }
// set up the tweens used in health behavior protected void InitializeTweens() { // Tween configuration MaterialColorTweenProperty red = new MaterialColorTweenProperty(Color.red); GoTweenConfig rConfig = new GoTweenConfig(); rConfig.addTweenProperty(red); rConfig.setIterations(6); rConfig.loopType = GoLoopType.PingPong; // Make a tween to turn the gameObject red turnRed = new GoTween(this.gameObject, .5f, rConfig); }
/// <summary> /// material color tween /// </summary> public TweenConfig materialColor( Color endValue, MaterialColorType colorType = MaterialColorType.Color, bool isRelative = false ) { var prop = new MaterialColorTweenProperty( endValue, colorType, isRelative ); _tweenProperties.Add( prop ); return this; }
/// <summary> /// material color tween /// </summary> public GoTweenConfig materialColor( Color endValue, string colorName = "_Color", bool isRelative = false ) { var prop = new MaterialColorTweenProperty( endValue, colorName, isRelative ); _tweenProperties.Add( prop ); return this; }