Пример #1
0
        private void UpdateLightbar()
        {
            totalTimeActive += Time.deltaTime;

            float num = UWE.Utils.SineWaveNegOneToOne(totalTimeActive * 0.5f) * 100f;

            int num2 = Mathf.FloorToInt(150f + num);

            num2 = Mathf.Clamp(num2, 13, 255);

            lightbarColor.r = (float)num2;

            PlatformUtils.SetLightbarColor(lightbarColor, 0);
        }