Ejemplo n.º 1
0
        public void Update()
        {
            if (m_pingTimer != null)
            {
                m_pingTimer.Update(m_time.Time);
            }

            if (!enabled)
            {
                return;
            }

            m_engine.Update();

            //if(m_botControlManager.UseServer)
            //{
            //for (int i = 0; i < m_bots.Length; ++i)
            //{
            //    m_bots[i].Update(m_time.Time);
            //}
            //}
            //else
            {
                m_botControlManager.Update();
            }

            FixedUpdate();
        }
Ejemplo n.º 2
0
        private void Update()
        {
            m_engine.Update();

            //for (int i = 0; i < m_bots.Length; ++i)
            //{
            //    m_bots[i].Update(Time.realtimeSinceStartup);
            //}
        }
Ejemplo n.º 3
0
        protected void RunEngine(int ticks = MAX_TICKS)
        {
            for (int i = 0; i < ticks; ++i)
            {
                m_engine.Update();

                m_replay.Tick(m_engine, m_tick);
                CommandsBundle commands;
                if (m_engine.Tick(m_tick, out commands))
                {
                    commands.Tick = m_tick;
                }

                m_tick++;
                m_prevTickTime += GameConstants.MatchEngineTick;
            }
        }