Can you start by please copy and pasting your actual code? What you have shared here won’t compile. Maybe that’s the problem, do you have compile errors in Unity? Also can you please use code tags as described here to make your code more readable on the forums? Using code tags properly