/** * Create the exercis using all the rings in scene **/ public void createExcercise() { //TODO randomized (just for the lols) int starterPin = 0; //pin references foreach (Pin pin in pins) { exerciseManager.AddPinReference(pin); pin.SetSelection(false); //removing any selection from the pin } //ring references and positioning for (int i = rings.Count - 1; i >= 0; i--) { exerciseManager.AddRingReference(rings[i]); exerciseManager.AddRingToPin(rings[i], starterPin); exerciseManager.PositionateRingOnPin(rings[i], starterPin, (rings.Count - i)); } //Pin where the exercise start exerciseManager.starterPin = starterPin; //Pin color hint pins[starterPin].SetSelection(true); }