public SandBox() { //Robot 输入操作定时器,robot每隔timer.Interval产生一次操作 Timer timer = new Timer(); timer.Enabled = true; timer.Interval = 1.0 / Config.fps * 1000; timer.Start(); timer.Elapsed += new ElapsedEventHandler(sandbox_update); s_robotSystem.generate_robots(Config.numRobotsCreate); m_robots = s_robotSystem.get_robots(); }