private void OnCollisionEnter2D(Collision2D coll) { if (coll.gameObject.tag == "Player") { dialogue.text = "I have no recollection of how I arrived on this station, but I recall my past life."; // logPanel.text += dialogue.text + "\n"; GameGoodies.CollectedChips(0, dialogue.text); GameMasterControl.incStory(); } }
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(); } } }