public float GetQuality(List <RaycastHit> picks) { var pickClassifications = PickClassifier.Classify(picks); switch (picks.Count) { case 0: { return(0); } default: { return(pickClassifications[0] == PickClassifier.PickClassification.Floor ? 1.0f : 0); } } }
public float GetQuality(List <RaycastHit> picks) { var pickClassifications = PickClassifier.Classify(picks); switch (picks.Count) { case 0: { return(0); } default: { return(1.0f); // We only need one pick, and it can be of any type. } } }