Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
new OnPointerDown(e => {
log('fuit1 ', e)
playNote(fruit1)
})
)
new OnPointerDown(e => {
log('fuit2', e)
playNote(fruit2)
})
)
Input.instance.subscribe('BUTTON_DOWN', ActionButton.POINTER, true, evt => {
log(evt)
if (evt.hit) {
spawnClick(evt.hit.hitPoint)
spawnClick2(evt.origin.add(evt.direction.scale(evt.hit.length)))
}
})