Пример #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;
        }