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); }
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); }