Esempio n. 1
0
    void Update()
    {
        if (transitioning && staticCameraCopy.IsFinished())
        {
            Vector3 tempWandPos = wandCopy.position;
            tempWandPos.y    -= distanceBetweenRooms;
            wandCopy.position = tempWandPos;

            Vector3 tempHatPos = playerHatCopy.position;
            tempHatPos.y          -= distanceBetweenRooms;
            playerHatCopy.position = tempHatPos;

            WandRigidBodyController.yOffset -= distanceBetweenRooms;

            staticCamera.Halt();
            transitioning = false;
            staticCameraCopy.IncrementInitialPos();
            currentRoom++;

            if (currentRoom == 2)
            {
                sendCueLocationCopy.GetComponent <SendCueLocation> ().startClue = true;
            }

            if (currentRoom == 3)
            {
                sendCueLocationCopy2.GetComponent <SendCueLocation>().startClue = true;
            }
        }
    }