コード例 #1
0
        private void OnTick()
        {
            for (int i = 0; i < m_taskRunners.Length; ++i)
            {
                ITaskRunner taskRunner = m_taskRunners[i];
                if (taskRunner != null)
                {
                    taskRunner.Tick();
                }
            }

            for (int i = 0; i < m_pathFinders.Length; ++i)
            {
                IPathFinder pathFinder = m_pathFinders[i];
                if (pathFinder != null)
                {
                    pathFinder.Tick();
                }
            }

            for (int i = 0; i < m_taskEngines.Length; ++i)
            {
                ITaskEngine taskEngine = m_taskEngines[i];
                if (taskEngine != null)
                {
                    taskEngine.Tick();
                }
            }
        }