Skip to content

Commit

Permalink
📝 fix incorrect example
Browse files Browse the repository at this point in the history
  • Loading branch information
Roms1383 committed Feb 27, 2024
1 parent 03d4509 commit 0540af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/pages/patterns/scriptables.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public class Controller extends IScriptable {

public class PlayerPuppet extends ScriptedPuppet {
private let controller: ref<Controller>;
private final func PlayerDetachedCallback(playerPuppet: ref<GameObject>) -> Void {
private final func PlayerAttachedCallback(playerPuppet: ref<GameObject>) -> Void {
// here controller can be attached (register)
}
private final func PlayerAttachedCallback(playerPuppet: ref<GameObject>) -> Void {
private final func PlayerDetachedCallback(playerPuppet: ref<GameObject>) -> Void {
// here controller can be detached (unregister/cleanup)
}
}
Expand Down

0 comments on commit 0540af7

Please sign in to comment.