/// <summary> /// Returns the seat for the given DragObject. /// </summary> public Transform GetSeat(DragObject inDragObject) { Assert.True(inDragObject != null, "DragObject is not null.", "Cannot find seat for null DragObject."); Assert.True(inDragObject.Owner == this, "DragObject has this owner.", "DragObject is not assigned to this DropZone."); return(GetSeat(inDragObject.Index)); }
private void OnHolderAdded(DragHolder inHolder, DragObject inObject) { ExpressionPiece piece = inObject.GetComponent <ExpressionPiece>(); Expression[PieceIndex] = piece; }
protected void OnDragStart(DragObject inObject) { GetComponent <ObjectTweener>().SetTarget(m_DragObject.transform.position); }
private void Awake() { m_DragObject = GetComponent <DragObject>(); }
protected virtual void Awake() { m_DragObject = GetComponent <DragObject>(); m_DragObject.OnDragStart += OnDragStart; }