Exemplo n.º 1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Player" && other.gameObject.name == "Woodle Character")
        {
            camF = PlayerManager.GetMainPlayer().cam.GetComponent <CameraFollower>();

            if (camF != null && camF.currentCutID != iD)
            {
                camF.currentCutID = iD;
                camF.cutHAngle    = horizontalMovement;
                camF.cutVAngle    = verticalMovement;
                if (!canMoveCamera)
                {
                    camF.cutFarDist = maxCharacterDistFOV;
                }
                camF.EnterCameraCut(cameraCutPosition, !canMoveCamera, transitionToCut, cameraFollowsCharacter);
            }
        }
    }