Exemplo n.º 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);
    }
Exemplo n.º 2
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;
    }