๐Actor
ๅ็๏ผๅๅฅ็นผๆฟๅ
Declaration
โ๏ธcomforms to๏ผ๐ ฟ๏ธ Item, ๐ ฟ๏ธ NodeConstructible (internal)
๐ฉDesignated Initializer โฉ๏ธ Return Type
init
ๆนๆณ
ๅๆธ
ๅๅฅ
้ ่จญๅผ
่ชชๆ
init(name:) ๐ฉ
name
CharacterName?
nil
If you leave out name
, the saved character will be used.
init?(node: ) ๐ฉ
node
SCNNode
instance properties
ๅฑฌๆง
ๅๅฅ
่ชชๆ
isBlocked๐
Bool
isBlockedLeft๐
Bool
isBlockedRight๐
Bool
isOnGem๐
Bool
isOnOpenSwitch๐
Bool
isOnClosedSwitch๐
Bool
instance methods
ๆนๆณ
ๅๆธ
ๅๅฅ
โฉ๏ธ ๅณๅ
่ชชๆ
jump()
Coordinate
ๅพๅ่ทณไธๆ ผ
move(distance:) ๐
distance
Int
Coordinate
ๅพๅ่ตฐ n ๆ ผ
moveForward()๐
turnLeft()๐
turnRight()๐
collectGem()๐
toggleSwitch()๐
isOnItem(ofType:) ๐๐ฉ
type
Node.Type
Bool
danceLikeNoOneIsWatching()๐
turnUp()๐
่ฎๅพ็ฒพๅๅ ๆฒ
breakItDown()๐
่ฎๅพๆ็ฏๅฅๆ
grumbleGrumble()๐
็ข็ขๅธ
argh()๐
ๆ้ปๆฑๆ (ๆฌ่ฒๅญ)
headScratch()๐
bumpIntoWall()๐
Last updated
Was this helpful?