public override void OnDeselected()
    {
        base.OnDeselected();

        grabObjectAction.RemoveOnUpdateListener(GrabObject, castingHand.handType);
        pullPushAction.RemoveOnChangeListener(SetPullPushMode, castingHand.handType);
        isGrabbing           = false;
        isPullPushModeActive = false;
        particles.Stop();

        if (currentTarget != null)
        {
            currentTarget.OnRelease();
        }
    }
コード例 #2
0
    private void OnForceGrabEnd()
    {
        isGrappleProjectileDeployed = false;

        forceGrabbableTarget.OnRelease(this);

        StopDrawingGrappleLighting();
        if (grabPoint != null)
        {
            Destroy(grabPoint.gameObject);
        }
    }