private void FrameIncrease(string[] frames, MultiplayerPlayerScript clients) { if (delayTimer.TimePassed(delay.GetValueFloat() / 100)) { delayTimer.Reset(); clients.Networkplayername = frames[frameCounter]; clients.Networkplainname = frames[frameCounter]; frameCounter++; } }
private void Cycle()//For the pride people. { if (CycleDelay.TimePassed(ClickMenu.rainbowCycleSpeed.GetValueFloat() / 100)) { CycleDelay.Reset(); float H, S, V; Color.RGBToHSV(colour, out H, out S, out V); if (H >= 1.0f) { H = 0; } else { H += 0.01f; } colour = Color.HSVToRGB(H, S, V); } }