Beispiel #1
0
    void Update()
    {
        if (!(gp == null))
        {
            if (gp.GetComponentInParent <Controls>().triggerAxis == 1)
            {
                istriggerpull = true;
            }
            else
            {
                istriggerpull = false;
            }
        }



        if (isHeld && istriggerpull)
        {
            shooter.Bang(device);
        }
    }