Пример #1
0
 void Update()
 {
     if (playerInside && Input.GetButtonDown(OSInputManager.GetPadMapping("Submit")) && !sequencer.isOnSequence && !msgController.IsDialogActive && playerController.GetAnimatorAxisValue("y") == 1)
     {
         if (!doorLocked)
         {
             doorLocked = true;
             StartCoroutine("DoorLocked");
         }
         else
         {
             doorLocked = false;
         }
     }
 }