Exemple #1
0
 private void ApplyFunctionalBlock()
 {
     if (!controlsEnabled)
     {
         if (buttonTriggerPause != null)
         {
             buttonTriggerPause.enabled = false;
         }
         if (buttonImagePause != null)
         {
             buttonImagePause.raycastTarget = false;
         }
         if (challengeStage != null)
         {
             //Debug.Log("Debug : InputManager : ApplyFunctionalBlock, releasing all keys.");
             ReleaseLeftStick();
             ReleaseRightStick();
             challengeStage.ReleaseAllKeys(-1);
         }
     }
     else
     {
         if (buttonTriggerPause != null)
         {
             buttonTriggerPause.enabled = true;
         }
         if (buttonImagePause != null)
         {
             buttonImagePause.raycastTarget = true;
         }
     }
 }