Beispiel #1
0
    public override bool OffInteract(GazePointer pointer, Transform objectToInteractWith)
    {
        base.OffInteract(pointer, objectToInteractWith);

        this.pointer = null;
        gazeAnchor   = null;

        if (objectToInteractWith != null)
        {
            placement = objectToInteractWith.GetComponent <GrabbedInteractablePlacement>();

            if (placement != null)
            {
            }
        }

//        StopAllCoroutines();

        StopCoroutine(MoveToAnchorPosition());
        StopCoroutine(MoveToNotGrabbedPosition());
        StartCoroutine(MoveToNotGrabbedPosition());

        return(true);
    }
    public override bool OffInteract(GazePointer pointer, Transform objectToInteractWith)
    {
        base.OffInteract(pointer, objectToInteractWith);

        this.pointer = null;
        gazeAnchor = null;

        if (objectToInteractWith != null)
        {
            placement = objectToInteractWith.GetComponent<GrabbedInteractablePlacement>();

            if (placement != null)
            {

            }
        }

//        StopAllCoroutines();

        StopCoroutine(MoveToAnchorPosition());
        StopCoroutine(MoveToNotGrabbedPosition());
        StartCoroutine(MoveToNotGrabbedPosition());

        return true;
    }