private void OnHolderRemoved(DragHolder inHolder, DragObject inObject) { ExpressionPiece piece = inObject.GetComponent <ExpressionPiece>(); if (Expression[PieceIndex] == piece) { Expression[PieceIndex] = null; } }
private void OnHolderAdded(DragHolder inHolder, DragObject inObject) { ExpressionPiece piece = inObject.GetComponent <ExpressionPiece>(); Expression[PieceIndex] = piece; }