コード例 #1
0
        private void Start()
        {
            m_Lanes = FindObjectOfType <Lanes>();
            m_Lanes.RandomizeBoost();

            m_Agents = FindObjectsOfType <DriverAgent>();

            for (int i = 0; i < m_Agents.Length; i++)
            {
                m_Agents[i].DecisionInterval = m_DecisionInterval;
                m_Agents[i].ResetToStartPosition();
            }

            for (int i = 0; i < m_Agents.Length; i++)
            {
                m_Agents[i].UpdateOpponentDeltas(false);
            }

            Academy.Instance.AgentPreStep += MakeRequests;
        }