/// <summary> /// Sets the progress for a given node. /// </summary> /// <param name="node">Node.</param> /// <param name="completed">Completed.</param> public void SetProgress(NodeName node, DifficultyComplete completed) { if (Nodes[(int)node] != null) { Nodes[(int)node].SetProgress(completed); } }
public void SetProgress(DifficultyComplete difficulty) { FirstCircuit.SetActive(false); SecondCircuit.SetActive(false); ThirdCircuit.SetActive(false); if (difficulty != DifficultyComplete.NotComplete && Portrait != null) { Portrait.color = Color.white; } switch (difficulty) { case DifficultyComplete.NotComplete: FirstCircuit.SetActive(true); break; case DifficultyComplete.Easy: SecondCircuit.SetActive(true); break; case DifficultyComplete.Medium: case DifficultyComplete.Hard: ThirdCircuit.SetActive(true); break; } }