Ejemplo n.º 1
0
    private void OnTriggerEnter(Collider other)
    {
        GatorGate1.SetActive(false);
        GatorGate2.SetActive(false);
        GatorGate3.SetActive(false);

        FindObjectOfType <AudioManager>().SwampTheme.TransitionTo(5f);
    }
    /*
     * public void ResetAllObjects()
     * {
     *
     *  littleCube.transform.position = littleCubeStart;
     *  BigCube.transform.position = BigCubeStart;
     *  RollingCube.transform.position = RollingCubeStart;
     *  Tree.transform.position = TreeStart;
     *  TreeSmasher.transform.position = TreeSmasherStart;
     *  Bear.transform.position = BearStart;
     *  WaterPlugcube.transform.position = WaterPlugStart;
     *  Gator1.transform.position = Gator1Start;
     *  Gator2.transform.position = Gator2Start;
     *  Gator3.transform.position = Gator3Start;
     *  GrabbableRoof.transform.position = GrabbableRoofStart;
     *  TempleDoor.transform.position = TempleDoorStart;
     *  LoweringPlatform1.transform.position = LoweringPlatform1Start;
     *
     *  GatorGate1.SetActive(true);
     *  GatorGate2.SetActive(true);
     *  GatorGate3.SetActive(true);
     *
     *
     * }
     */



    public void ResetButton()
    {
        ResetAllObjects();


        GatorGate1.SetActive(true);
        GatorGate2.SetActive(true);
        GatorGate3.SetActive(true);
        bluePickup.SetActive(false);
        redPickup.SetActive(false);
        movingBluePickup.SetActive(true);
        MovingRedPickup.SetActive(true);
    }