public GoTweenConfig materialColor(Color endValue, string colorName = "_Color", bool isRelative = false)
    {
        MaterialColorTweenProperty item = new MaterialColorTweenProperty(endValue, colorName, isRelative);

        _tweenProperties.Add(item);
        return(this);
    }
Exemplo n.º 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);
    }
Exemplo n.º 3
0
    // 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);
    }
Exemplo n.º 4
0
    /// <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;
    }
Exemplo n.º 5
0
	/// <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;
	}