Hi Darshvoid,
In ancient versions of Unity, there were “magic” variables such as renderer
, rigidbody
, audioSource
and so on. They have been obsolete for many years but have not been removed from the source code yet.
Add the new
keyword in front of lines 7 and 8. That should fix the problem. Alternatively, rename your variables.
Did this help?
See also:
- Forum User Guides : How to mark a topic as solved
Yeah that fixed it although there was warnings everything worked just fine it was a bit bothering to see them there. Thank you!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.