コード例 #1
0
        private float GScore(Connection connection)
        {
            float score = connection.Cost * connection.Weight;

            foreach (WeightHandler handler in m_Owner.WeightHandlers(connection.Tag))
            {
                score *= handler(connection);
            }

            return(score);
        }