private void Update() { for (int i = 0; i < m_taskRunners.Length; ++i) { ITaskRunner taskRunner = m_taskRunners[i]; if (taskRunner != null) { taskRunner.Update(); } } for (int i = 0; i < m_pathFinders.Length; ++i) { IPathFinder pathFinder = m_pathFinders[i]; if (pathFinder != null) { pathFinder.Update(); } } if (m_bots != null) { for (int i = 0; i < m_bots.Length; ++i) { IBotController bot = m_bots[i]; if (bot != null) { bot.Update(Time.realtimeSinceStartup); } } } }