Internal function called when object is clicked * @param {boolean} [playSound]
(playSound=true)
| 974 | /** Internal function called when object is clicked |
| 975 | * @param {boolean} [playSound] */ |
| 976 | click(playSound=true) |
| 977 | { |
| 978 | this.onClick(); |
| 979 | if (playSound && this.soundClick) |
| 980 | this.soundClick.play(); |
| 981 | } |
| 982 | |
| 983 | /** Called each frame before object updates */ |
| 984 | onUpdate() {} |
no test coverage detected