예제 #1
0
    public void ToShootingMode(GameObject spot, ThirdPersonPlayerController ply)
    {
        FPSCamera FPSCam = FPSCamera.GetComponent <FPSCamera>();

        // Disabling the third person player
        ply.gameObject.SetActive(false);

        // Switching camera mode
        TPCamera.SetActive(false);
        FPSCamera.SetActive(true);

        // Starting the transition between cameras
        FPSCam.SetCurrentPosition(TPCamera.transform);
        FPSCam.TransitionTo(spot, transitionMovSpeed, transitionRotSpeed);

        Debug.Log("ToShootingMode() called");
    }