GetFreeDropPosition() public method

public GetFreeDropPosition ( ) : DropPosition
return DropPosition
Ejemplo n.º 1
0
    public override bool OffInteract(GazePointer pointer, Transform objectToInteractWith)
    {
        if (objectToInteractWith)
        {
            holder = objectToInteractWith.GetComponent<ScribblerHolder>();

            if (holder)
            {
                holder.puzzle.PutInHolder(this, holder);

                dropPosition = holder.GetFreeDropPosition();
            }
        }
        else
        {
            Debug.Log("objectToInteractWith is null");
            holder = null;
        }

        return base.OffInteract(pointer, objectToInteractWith);
    }
Ejemplo n.º 2
0
    public override bool OffInteract(GazePointer pointer, Transform objectToInteractWith)
    {
        if (objectToInteractWith)
        {
            holder = objectToInteractWith.GetComponent <ScribblerHolder>();

            if (holder)
            {
                holder.puzzle.PutInHolder(this, holder);

                dropPosition = holder.GetFreeDropPosition();
            }
        }
        else
        {
            Debug.Log("objectToInteractWith is null");
            holder = null;
        }

        return(base.OffInteract(pointer, objectToInteractWith));
    }