Exemplo n.º 1
0
    private void CameraTwitch()
    {
        float twitchAmount = Mathf.Clamp((maxHealth - playerHealth) / maxHealth, 0f, 1f);

        cameraShake.ChangeShakeAmount(twitchAmount);
        cameraShake.ChangeShakeDuration(1f);
    }