Example #1
0
    /// <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);
    }
Example #2
0
    /// <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;
    }
Example #3
0
 public MaterialColorTweenProperty(Color endValue, GoMaterialColorType colorName = GoMaterialColorType.Color, bool isRelative = false) : base(endValue, isRelative)
 {
     _materialColorName = "_" + colorName.ToString();
 }
	public MaterialColorTweenProperty( Color endValue, GoMaterialColorType colorName = GoMaterialColorType.Color, bool isRelative = false ) : base( endValue, isRelative )
	{
		_materialColorName = "_" + colorName.ToString();
	}
 public static GoTween colorFrom(this Material self, float duration, Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color)
 {
     return(Go.from(self, duration, new GoTweenConfig().materialColor(endValue, colorType)));
 }
Example #6
0
 public static GoTween colorFrom( this Material self, float duration, Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color )
 {
     return Go.from( self, duration, new GoTweenConfig().materialColor( endValue, colorType ) );
 }