예제 #1
0
    void Update()
    {
        InteractionUpdate();

        if (gunHoldable.IsGrabbed && magazine != null)
        {
            if (Application.isEditor && Input.GetKeyDown(ejectMagazineButton) ||
                OVRInput.GetDown(ejectMagazineButtonVR, gunHoldable.HoldingHand))
            {
                magazine.Eject();
            }
        }
    }