Exemplo 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;
    }
Exemplo 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();
     }
 }