public static void divise7(Enigme e) { if (e.clef == false) { e.setDifficulty(e.getDifficulty() / 7);; } }
//Try to open the door public static void tryDoor(Enigme e) { if (e.getDifficulty() == 0 && e.clef == true) { //Open the door Debug.Log("Door opened !"); Object.Destroy(GameObject.Find("Cailloux")); } }
public CubeEnigme(Enigme e) { this.enigme = e; difficulty = e.getDifficulty(); clef = e.clef; }