Пример #1
0
    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();
        }
    }
Пример #2
0
    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();
            }
        }
    }