Unity3d attach texture to the cube problems via script

I have created a cube in the scene and I want to attach the texture to the cube by scripting. The problem is there is no error of my code but The cube doesn’t change after I press run in my program…

PLS HELP THX

Your code isn’t running because there is no built-in function called “start”. Correct spelling and capitalization are critical when writing code.