public void DisplayScore(FeedRate rateTracker) { UI_Manager.InfoPanel.SetActive(true); float lineScore = rateTracker.GetLineScore(); cumulativeLineScore += lineScore; Debug.Log("Chop Saw Cut Score: " + lineScore); //string result = lineScore + ": "; string result = ""; if (lineScore >= 90.0f) { result += "Excellent! That was a perfect cut."; } else if (lineScore < 90.0f && lineScore >= 75.0f) { result += "Well done! It's a bit rough, but a clean cut regardless."; } else { result += "Not bad, but you can do a much better job. Remember to cut at a consistent rate and near the line."; } UI_Manager.InfoText.text = result; UI_Manager.HideButton.gameObject.SetActive(true); UI_Manager.StartOverButton.gameObject.SetActive(false); UI_Manager.NextSceneButton.gameObject.SetActive(false); }
public VirtualMachineSettings() { AxisStepsPerUnit = new AxisStepsPerUnit(); FeedRate = new FeedRate(); }