/// <summary> /// Breaks a random machine, has a chance to generate a 'FIXED' issue, or break an already broken machine /// in which case, nothing will happen /// </summary> private void BreakMachine() { int machineToBreak = Random.Range(0, /*4*/ 1); MachineIssue issue = GenerateIssue(); switch (machineToBreak) { case (0): m_woodchipper.BreakMachine(issue); Debug.Log("Woodchipper broke with issue " + issue.ToString()); break; /*case (1): * m_press.BreakMachine(issue); * Debug.Log("Press broke with issue " + issue.ToString()); * break; * case (2): * m_generator.BreakMachine(issue); * Debug.Log("Generator broke with issue " + issue.ToString()); * break; * case (3): * Debug.Log("No machine was broken"); * break;*/ default: Debug.LogError("Something went horribly wrong with Random.Range"); break; } }