Skip to content

Commit

Permalink
Merge pull request #31 from rrbox/hotfix
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
rrbox authored Feb 4, 2022
2 parents 5050ef6 + bb78b4c commit c6cecd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Builder<SKNode>()
.position(CGPoint(x: 0, y: 32)) // 子ノードの座標を設定
}
)
.add(child: SKLabelNode(text: "Rect"), build = { builder in
.add(child: SKLabelNode(text: "Rect"), build: { builder in
builder
.position(x: -32, y: -32)
})
Expand All @@ -31,7 +31,7 @@ func anyMethod() {
// プロパティに $ をつけることで Builer ラッパのインスタンスにアクセスできます
self.$node
.add(child: SKSpriteNode(color: .white, size: CGSize(width: 32, height: 32)))
.add(child: SKLabelNode(text: "Rect"), build = { builder in
.add(child: SKLabelNode(text: "Rect"), build: { builder in
builder
.position(x: -32, y: -32)
})
Expand Down

0 comments on commit c6cecd5

Please sign in to comment.