//Moves button into "down" state public void PressButton() { if (isUp && !isMoving) { StartCoroutine(MoveButton()); if (!hasBeenTriggered) { doorToOpen.DecrementNumConnectedButtons(); } hasBeenTriggered = true; isUp = false; } StartTimer(); }
//Moves button into "down" state public void PressButton() { if (isUp && !isMoving) { StartCoroutine(MoveButton()); if (!hasBeenTriggered) { doorToOpen.DecrementNumConnectedButtons(); } hasBeenTriggered = true; isUp = false; } StartTimer(); }