Question by
jondeejondee123 · Oct 11, 2018 at 08:35 AM ·
variables
How can I assign a value into my object.,How to assign a variable to a sprite that is used as an object and is randomly spawned?
Hi I'm creating a game in which there are bubbles falling randomly in a column. Each bubble has a number (1-10) and by clicking it I want the value of it to appear in a text which then can be manipulated by adding, subtracting, multiplying and dividing. The random spawning and falling is okay. I just need to assign value to each bubble and be able to manipulate it. Hope you can help me thanks!,Hi I need help because I need to make a game that spawns random bubbles in a column, each have different numbers (1-10) and then by clicking it, the value appears in a space or in a text which can also be manipulated by adding, subtracting, multiplying or dividing. Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612180142im_/https://answers.unity.com/themes/thub/images/avi.jpg)