Skip to content

Commit

Permalink
feat: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
cptbtptpbcptdtptp committed Jul 22, 2024
1 parent 1068d34 commit 5248421
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/Script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,16 @@ export class Script extends Component {
onPointerDrag(pointer: Pointer): void {}

/**
* This function will be called when the pointer is released while dragging.
* When dragging ends, this function will be called(Dragged object).
* @param pointer - The pointer that triggered
* @remarks Dragged object: The object being dragged.
*/
onPointerEndDrag(pointer: Pointer): void {}

/**
* This function will be called when the pointer is lifted on the collider.
* When dragging ends, this function will be called(Receiving object).
* @param pointer - The pointer that triggered
* @remarks Receiving object: The collider hit when ending the drag.
*/
onPointerDrop(pointer: Pointer): void {}

Expand Down

0 comments on commit 5248421

Please sign in to comment.