| 1 | class BtnFruit extends MoveableMenuItem |
| 2 | { |
| 3 | fruitInventory = null; |
| 4 | |
| 5 | addedToScene () |
| 6 | { |
| 7 | this.fruitInventory = this.scene.addObject(new FruitInventory(352, -500, this.scene.game.images.fruitInventory, 1)); |
| 8 | } |
| 9 | |
| 10 | onClick (btns) |
| 11 | { |
| 12 | MainMenu.Instance.menu.close(); |
| 13 | this.fruitInventory.moveToOpen(); |
| 14 | } |
| 15 | } |