Exemplo n.º 1
0
    //
    protected void Update()
    {
        if (_seeThrough != seeThrough)
        {
            _seeThrough = seeThrough;
            if (_seeThrough)
            {
                h.SeeThroughOn();
            }
            else
            {
                h.SeeThroughOff();
            }
        }

        // Fade in/out constant highlighting with button '1'
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            h.ConstantSwitch();
        }

        // Turn on/off constant highlighting with button '2'
        else if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            h.ConstantSwitchImmediate();
        }

        // Turn off all highlighting modes with button '3'
        if (Input.GetKeyDown(KeyCode.Alpha3))
        {
            h.Off();
        }
    }