HeroCamera.Update C# (CSharp) 메소드

Update() 공개 메소드

public Update ( ) : void
리턴 void
    void Update()
    {
        if (GameObject.FindWithTag("Player") && !Screen.lockCursor)
            Screen.lockCursor = true;

        if (Input.GetMouseButtonDown(2))
        {
            camSwitch = !camSwitch;

            if (camSwitch)
                camState = CameraState.Orbit;
            else
                camState = CameraState.ThirdPerson;
        }
    }