Ejemplo n.º 1
0
        void Update()
        {
            float unscaledDeltaTime = Time.unscaledDeltaTime;

            GamepadHandler.OnUpdate(unscaledDeltaTime);
            for (int i = 0; i < m_controlSchemes.Count; i++)
            {
                m_controlSchemes[i].Update(unscaledDeltaTime);
            }
            ScanService.Update(Time.unscaledTime, KeyCode.Escape, 5.0f, numPlayers);
        }
Ejemplo n.º 2
0
        private void Update()
        {
            gamepad.OnUpdate(Time.unscaledDeltaTime);

            for (int i = 0; i < maxPlayers; i++)
            {
                if (playerSchemes[i] != null)
                {
                    playerSchemes[i].Update(Time.unscaledDeltaTime);
                }
            }

            if (m_scanService.IsScanning)
            {
                m_scanService.Update(Time.unscaledTime, KeyCode.Escape, 5.0f);
            }
        }
Ejemplo n.º 3
0
        void Update()
        {
            float unscaledDeltaTime = Time.unscaledDeltaTime;

            GamepadHandler.OnUpdate(unscaledDeltaTime);

            updatedSchemes.Clear();
            for (int i = 0; i < playerSchemes.Length; i++)
            {
                if (playerSchemes[i] != null)
                {
                    if (!updatedSchemes.Contains(playerSchemes[i]))
                    {
                        playerSchemes[i].Update(unscaledDeltaTime);
                        updatedSchemes.Add(playerSchemes[i]);
                    }
                }
            }

            ScanService.Update(Time.unscaledTime, KeyCode.Escape, 5.0f, numPlayers);
        }