예제 #1
0
    void shootingTrigger(string action)
    {
        if (Input.GetAxis(action) > 0 && !isTriggerDown)
        {
            //TODO - Shoot button
            crosshair.AttemptShot();

            isTriggerDown = true;
        }

        if (Input.GetAxis(action) <= 0)
        {
            isTriggerDown = false;
        }
    }