private void OnCollisionEnter2D(Collision2D coll) { if (coll.gameObject.tag == "Player") { //Ensure croutine runs only once bool enter = true; if (enter) { enter = false; p.showPanel(); GameMasterControl.incStory(); //jds //run routine, wait before closing panel p.hidePanel(); } } }