private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Whip" && playedOnce == false) { isShut = true; shake.triggerShakeMedium(); animGears.Play("DoorMechanismTurn"); playedOnce = true; rubble.Play(); highlight.SetActive(false); } }
private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Whip" && playedOnce == false) { triggerDoorGears.gearCounterAdder(); isShut = true; shake.triggerShakeMedium(); animGears.Play("newFloorMechanismLevelOneConfigurationanim"); playedOnce = true; rubble.Play(); highlight.SetActive(false); } }