Identifying the Text on the block
Instantiating blocks having random numbers. On clicking on a block destroys the block but I couldn't find a way to get(save in a variable, like "private int numberOnDestroyedBlock") the number on that block. Anyone know how to do this?
Comment
Answer by FortisVenaliter · Sep 21, 2017 at 03:57 PM
Basically, you need to write a custom script to store that variable and attach that script to each block. Then, before you destroy the block, get the component described by that script, find the value, and then destroy it.