Ejemplo n.º 1
0
    public void Flash()
    {
        SpriteFlash.SetMaterialFlashColor(spriteRenderer, flashColour);

        if (tween.isRunning())
        {
            tween.stop(true, true);
        }

        tween.jumpToElapsedTime(0f);
        tween.setDuration(duration);
        tween.setEaseType(easeType);
        tween.start();
    }