예제 #1
0
    void ChangeLookAtPoint()
    {
        if (_animController.IsRunning())
        {
            lookAtPoint.localPosition = new Vector3(0, 0.4f, 0);
        }
        else if (_animController.IsSliding())
        {
            lookAtPoint.localPosition = new Vector3(0, -0.4f, 0);
        }

        if (Input.GetKeyDown(KeyCode.S) || SwipeInput.Instance.SwipeDown)
        {
            _am.Pause("Footsteps");
            this.ChangeBCHeight();
        }
    }