예제 #1
0
 /// <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));
 }
예제 #2
0
        private void OnHolderAdded(DragHolder inHolder, DragObject inObject)
        {
            ExpressionPiece piece = inObject.GetComponent <ExpressionPiece>();

            Expression[PieceIndex] = piece;
        }
예제 #3
0
 protected void OnDragStart(DragObject inObject)
 {
     GetComponent <ObjectTweener>().SetTarget(m_DragObject.transform.position);
 }
예제 #4
0
 private void Awake()
 {
     m_DragObject = GetComponent <DragObject>();
 }
예제 #5
0
        protected virtual void Awake()
        {
            m_DragObject = GetComponent <DragObject>();

            m_DragObject.OnDragStart += OnDragStart;
        }