void Update()
 {
     if (Input.GetKeyDown(KeyCode.Tab))
     {
         colorsPuzzle.clean();
     }
     if (Input.GetKeyDown(KeyCode.E))
     {
         _colorSelected = true;
     }
 }
Beispiel #2
0
 void Update()
 {
     if (colorsPuzzle.IsActive)
     {
         controlActive = true;
         if (Input.GetKeyDown(KeyCode.Tab))
         {
             colorsPuzzle.clean();
         }
         if (Input.GetKeyDown(KeyCode.E))
         {
             _colorSelected = true;
         }
     }
     else
     {
         controlActive = false;
     }
 }