I am getting errors on ProjectBoost - Multiple Audio Clips

I don’t know what the problem is, but I’m getting these errors.


This is my code: (movement script)




This is my code: (collision)


Hi,

Please note, it’s better to copy/paste your code and apply the code fencing characters, rather than using screenshots. Screenshots are ideal for displaying specific details from within a game engine editor or even error messages, but for code, they tend to be less readable, especially on mobile devices which can require extensive zooming and scrolling.

You also prevent those that may offer to help you the ability to copy/paste part of your code back to you with suggestions and/or corrections, meaning that they would need to type a potentially lengthy response. You will often find that people are more likely to respond to your questions if you make it as easy as possible for them to do so.

Regarding the error messages, please check your assets folder. Are there multiple Movement.cs files? Or is the Movement class declares in another file, too? If not, go to Edit > Preferences > External Tools (in Unity) and click “Regenerate project files”. Did this fix it?

Hope this helps. :slight_smile:


See also:

1 Like

Thank you so much for the help, I found the problem. There was a duplicate movement script for some reason. I will also copy/paste my code here in the future. Thank you again for helping.

You’re welcome. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms