choosing object and drop them from a machine
Hi, I am doing an project with interactive with object in real life environment. I got stuck at creating a player can choose any object display from a vending machine. and after select object they appear after hitting the button.
Example: vending machine has 3 object (button x) for banana; (button c) for apple; and (button v) for water. so when player come close to vending machine. and hit x banana appear.
Anyone who know answers??????
Comment
Answer by Wolfshadow · Nov 10, 2015 at 02:35 AM
So, use OnMouseDown on each of the buttons, and when this happens trigger the correct fruit