示例#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();
            }
        }
    }
示例#3
0
    public GameMasterControl gameMasterScript;          //script to change score and health values

    void Start()
    {
        //grab script
        gameMasterScript = GameObject.Find("GameMasterControl").GetComponent <GameMasterControl>();
    }