コード例 #1
0
    void GetM2Input()
    {
        M2currentInput = Input.GetAxisRaw("Fire2");

        if (M2currentInput >= M1MinInput) //holding down button
        {
            if (M2prevInput < M2MinInput)
            {
                IM.AimNavPointerStart();
            }
            else
            {
                IM.AimNavPointerContinued(playerCam.transform.forward + improveAim);
            }
        }
        else //not holding
        {
            if (M2prevInput >= M2MinInput) //let go
            {
                IM.ReleasedNavPointer();
            }
        }

        M2prevInput = M2currentInput;
    }