Hi, I'm working on a project for school and it's my first time using C#, but for some reason in my game when I have the code to make an object appear as an object in the actual game it just gives me an error message of '"Cannot convert type "UnityEngine.GameObject" to "objectname"'. I've tried everything I can and it's not working, here's the error![alt text][1].
And the code I have for it![alt text][2]
[1]: /storage/temp/112020-capture1.png
[2]: /storage/temp/112021-capture.png
If anyone knows how to fix it or what I could do, any help would be greatly appreciated. Thanks for reading, and in advance.
↧