Ejemplo n.º 1
0
    void Start()
    {
        LeftGateAnchorOff.SetActive(true);
        RightGateAnchorOff.SetActive(true);

        LeftGateAnchorOn.SetActive(false);
        RightGateAnchorOn.SetActive(false);

        LeftFireOrb.GetComponent <MeshRenderer>().material  = fireOff;
        RightFireOrb.GetComponent <MeshRenderer>().material = fireOff;

        LeftFireOrb.SetActive(false);
        RightFireOrb.SetActive(false);

        LeftGateFire.SetActive(false);
        RightGateFire.SetActive(false);

        LeftCanLight  = false;
        RightCanLight = false;
    }
Ejemplo n.º 2
0
 public void check()
 {
     if (LeftFire)
     {
         LeftGateAnchorOff.SetActive(false);
         LeftGateAnchorOn.SetActive(true);
         LeftGateFire.SetActive(true);
         LeftFireOrb.GetComponent <MeshRenderer>().material = fireOn;
     }
     if (RightFire)
     {
         RightGateAnchorOff.SetActive(false);
         RightGateAnchorOn.SetActive(true);
         RightGateFire.SetActive(true);
         RightFireOrb.GetComponent <MeshRenderer>().material = fireOn;
     }
     if (LeftFire && RightFire)
     {
         OpenDoor();
     }
 }
Ejemplo n.º 3
0
 public void ReplaceRightKey()
 {
     RightFireOrb.SetActive(true);
     RightKeySocket.gameObject.transform.position = new Vector3(10, -10, -10);
     RightCanLight = true;
 }