예제 #1
0
    private void AdjustForNewLevel()
    {
        AdjustPaddles();
        AdjustCamera();
        float lightFactor = (float)Level / (kMaxLevel - 1);

        m_Light.intensity = Mathf.Lerp(1.0f, 0.02f, lightFactor);

        // show guides after level 4
        if (Level > 4)
        {
            m_Puck.SetGuides(true);
            m_GridGuide.gameObject.SetActive(true);
        }
        else
        {
            m_Puck.SetGuides(false);
            m_GridGuide.gameObject.SetActive(false);
        }
    }