Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        LeftAnchorOff.SetActive(true);
        RightAnchorOff.SetActive(true);

        LeftAnchorOn.SetActive(false);
        RightAnchorOn.SetActive(false);

        LeftFireOrb.material  = fireOff;
        RightFireOrb.material = fireOff;

        LeftBridgeFire.SetActive(false);
        RightBridgeFire.SetActive(false);
    }
Exemplo n.º 2
0
 public void check()
 {
     if (leftFireBool)
     {
         LeftAnchorOff.SetActive(false);
         LeftAnchorOn.SetActive(true);
         LeftBridgeFire.SetActive(true);
         LeftFireOrb.material = fireOn;
     }
     if (RightFireBool)
     {
         RightAnchorOff.SetActive(false);
         RightAnchorOn.SetActive(true);
         RightBridgeFire.SetActive(true);
         RightFireOrb.material = fireOn;
     }
     if (leftFireBool && RightFireBool)
     {
         bridgeActivate();
     }
 }