| 1 | class BtnFruit extends GameObject |
| 2 | { |
| 3 | fruitInventory = null; |
| 4 | |
| 5 | addedToScene () |
| 6 | { |
| 7 | this.fruitInventory = this.scene.addObject(new FruitInventory(352, -500, this.scene.game.images.fruitInventory)); |
| 8 | } |
| 9 | |
| 10 | onClick (btns) |
| 11 | { |
| 12 | console.log("ey"); |
| 13 | MenuManager.Instance.moveToClose(); |
| 14 | this.fruitInventory.moveToOpen(); |
| 15 | } |
| 16 | } |