Im not good at java but is dont get it
heres the script im working on
var block : Gameobject;
var texture1 : Texture;
var texture2 : Texture;
//The function of block decrease by the texture//
i want to make the mouse cursor touches the cube and texture1 decreases on the cube.
the defaut colour cube is blue then we click the cube again it becomes red then green and until yellow then destroy.How do i fix this?
like minecraft it has cracking texture on it.