Example #1
0
    public void UpdateCameraShake()
    {
        if (!m_shakeCamera)
        {
            return;
        }

        Vector3 position = m_cameraShaker.GetShakeValue(Time.deltaTime);

        position.z = 0;
        m_cameraShakeRoot.transform.position = position;
    }