예제 #1
0
 private void Toggle(InputAction.CallbackContext obj)
 {
     animator.SetTrigger("Click");
     currentActivatable?.Toggle();
     if (currentBreakable != null)
     {
         if (currentBreakable.repairKitNeeded == playerItems.currentRepairKit)
         {
             currentBreakable.isBroken = false;
             isTutorial = false;
         }
         else if (isTutorial)
         {
             messageTextField.text += "\n Find a new button to fix it!!";
         }
     }
 }