Beispiel #1
0
    }                                          //Is the Green lever facing up

    // Start is called before the first frame update
    void Start()
    {
        lockedDoor   = GameObject.Find("LockDoor").GetComponent <LockedDoor>(); //Connects the locked door script to this script
        moveWaterUp  = GameObject.Find("Pool").GetComponent <MoveWaterUp>();    //Connects the Move water script to this script
        rotateLevers = GetComponent <RotateLevers>();                           //Connects the Rotate lever script to this script
        isInteracted = false;
        isRedUp      = true;
        isBlueUp     = true;
        isGreenUp    = true;
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     moveWaterUp = GameObject.Find("Pool").GetComponent <MoveWaterUp>(); //Connects the Move water up script to this script
 }