Beispiel #1
0
 private void FrameIncrease(string[] frames, MultiplayerPlayerScript clients)
 {
     if (delayTimer.TimePassed(delay.GetValueFloat() / 100))
     {
         delayTimer.Reset();
         clients.Networkplayername = frames[frameCounter];
         clients.Networkplainname  = frames[frameCounter];
         frameCounter++;
     }
 }
Beispiel #2
0
        public void Update()
        {
            Cycle();
            FPS = Utils.Utils.GetFrameRate();
            if (LoadDelay.TimePassed(8f))
            {
                if (BindingHandler.AreWeBinding())
                {
                    BindingHandler.UpdateBinding();
                }

                ModuleManager.OnKeyPressed();
                ModuleManager.OnUpdate();
            }
        }
Beispiel #3
0
        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);
            }
        }