예제 #1
0
    //-------------------------------------------------------------------------
    public void startGlow(float duration)
    {
        mIsGlow          = true;
        mRestGlowSeconds = duration;

        mTurretBaseSprite.GetComponent <Renderer>().material   = mGlowMaterial;
        mTurretTopSprite.GetComponent <Renderer>().material    = mGlowMaterial;
        mTurretBlazeSprite.GetComponent <Renderer>().material  = mGlowMaterial;
        mTurretBarrelSprite.GetComponent <Renderer>().material = mGlowMaterial;

        mGlowMaterial.SetFloat("_GlowAlpha", 10);
    }