Exemplo n.º 1
0
 public override void NextChallenge()
 {
     if (allShapes.Count == 0) fillShapeList();
     int index = Random.Range(0, allShapes.Count);
     int currentShape = allShapes[index];
     currentChallegne = new TangramChallenge(currentShape, RandomAngles(currentShape, 0), RandomAngles(currentShape, 1), RandomAngles(currentShape, 2));
     allShapes.RemoveAt(index);
 }
Exemplo n.º 2
0
 public override void RestartGame()
 {
     allShapes.RemoveAll(e => true);
     fillShapeList();
     currentChallegne = null;
 }
Exemplo n.º 3
0
 internal void NextChallenge(TangramChallenge tangramChallenge)
 {
     tryBtn.enabled = false;
     RestartToggles();
     if (shapes[currentShape] != null) shapes[currentShape].SetActive(false);
     currentShape = tangramChallenge.GetShape();
     indicatedAngles[0].text = "" + tangramChallenge.GetAcuteAngles();
     indicatedAngles[1].text = "" + tangramChallenge.GetRightAngles();
     indicatedAngles[2].text = "" + tangramChallenge.GetObtuseAngles();
     shapes[currentShape].SetActive(true);
     tryBtn.gameObject.SetActive(true);
     nextBtn.gameObject.SetActive(false);
     EnableAngleButtons(true);
 }