Example #1
0
 public void clickTeapot(SmokeColor smokeColor, Color color, Vector3 newPosition)
 {
     teapotClick = new TeapotClick {
         smokeColor = smokeColor,
         color      = color,
         position   = newPosition
     };
 }
Example #2
0
 void submitSmoke(SmokeColor smokeColor)
 {
     // check if color is correct, if yes, check if solution reached, if no,
     // reset _numberCorrect variable
     if (solution[_numberCorrect] == smokeColor)
     {
         _numberCorrect++;
         if (_numberCorrect == 4)
         {
             solvePuzzle();
             _numberCorrect = 0;
         }
     }
     else
     {
         _numberCorrect = 0;
     }
 }