예제 #1
0
    void LeanRight()
    {
        //Debug.Log("LeanRight");
        FVAPI.lerpVectorAndQuaternionTimeMultiplied(cam, leanRight, 5);
        //mouseLookX.enabled = false;
        //mouseLookY.enabled = false;
//		mouseLookInitCam.enabled = false;
    }
예제 #2
0
    void LeanBack()
    {
//		Debug.Log("LeanBack");
        FVAPI.lerpVectorAndQuaternionTimeMultiplied(cam, initCam, 4);
        if (cam.rotation.z <= 0.01f && cam.rotation.z >= -0.01f)
        {
            allowedToLean = true;
//			mouseLookX.enabled = true;
//			mouseLookY.enabled = true;
//			mouseLookInitCam.enabled = true;
        }
    }