2016-08-26から1日間の記事一覧
腕からビーカーが離れて飛んでいくActionを実行させるメソッドを作りました。これを発動させるのがジェスチャーメソッドです。 override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { tossBeaker(strength: CGVector(dx: 1400, dy: 1150)) } </uitouch>…
腕からビーカーが離れて飛んでいくActionを実行させるメソッドを作りました。これを発動させるのがジェスチャーメソッドです。 override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { tossBeaker(strength: CGVector(dx: 1400, dy: 1150)) } </uitouch>…