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; } } }