I have a chest with a boxcollider2D that is set to: ‘is trigger’, and this script:
void OnTriggerEnter() {
if (Input.GetKey(KeyCode.UpArrow)) {
chest.SetBool ("open", true);
Also on the chest is an animator with a parameter called ‘open’, that when set to true plays the chest opening animation.
But when my character walks in front of the chest and i press the ‘up arrow’, nothing happens!
Please help!