예제 #1
0
 void OnCollisionStay(Collision collisionInfo)
 {
     if (collisionInfo.gameObject.tag == "Player")
     {
         //turns on correct path. didn't know a better way to go about this
         P1.SetActive(true);
         P2.SetActive(true);
         P3.SetActive(true);
         P4.SetActive(true);
         P5.SetActive(true);
         P6.SetActive(true);
         P7.SetActive(true);
     }
 }
예제 #2
0
    void OnCollisionStay(Collision collisionInfo)
    {
        if (collisionInfo.gameObject.tag == "Player")
        {
            //instructions for interact
            fireText.gameObject.SetActive(true);
            //turns off
            if (Input.GetKey(KeyCode.E))
            {
                this.gameObject.SetActive(false);
                fireText.gameObject.SetActive(false);

                //gross but can't think of a better way right now
                //activates lit up platforms
                P1.SetActive(true);
                P2.SetActive(true);
                P3.SetActive(true);
                P4.SetActive(true);
                P5.SetActive(true);
                P6.SetActive(true);
            }
        }
    }