示例#1
0
        //Happiness sphere collider
        void OnTriggerEnter(Collider other)
        {
            if (other != null)
            {
                //BurstMode();
                points++;
                HappyText.text = ("You have released the lever-the door is open. Find the cheese.");
                Particles p = other.GetComponent <Particles>();
                if (p != null)
                {
                    p.CheeseExplode();
                }

                Destroy(other.gameObject);

                doorOpen.PointCollect();

                if (points == 2)
                {
                    SceneManager.LoadScene(0);
                }
            }
        }