Example #1
0
 public static void divise7(Enigme e)
 {
     if (e.clef == false)
     {
         e.setDifficulty(e.getDifficulty() / 7);;
     }
 }
Example #2
0
 //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"));
     }
 }
Example #3
0
 public CubeEnigme(Enigme e)
 {
     this.enigme = e;
     difficulty  = e.getDifficulty();
     clef        = e.clef;
 }