Esempio n. 1
0
    public override void PerFrameUpdate()
    {
        UpdateBodyStatus();
        //RefreshCommandButtons();
        UpdateAperture();
        UpdateGeigerCounter();
        UpdateBoostIndicators();
        Compass.PerFrameUpdate();
        UpdateBloodSpatter();

        //update FPS
        FPSText.text = (1f / Time.smoothDeltaTime).ToString();

        if (_updateScalingTimer > 0)
        {
            UpdateScaling();
            _updateScalingTimer -= Time.deltaTime;
        }

        if (_isTargetNameFading && TargetNameBackground.alpha > 0)
        {
            TargetName.alpha           -= Time.deltaTime * 0.5f;
            TargetNameBackground.alpha -= Time.deltaTime * 0.5f;
        }
    }