A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
One big problem I see: on line 24 you're using a single equals sign, and so you're performing an assignment rather than a comparison.
You haven't actually stated what's currently happening when the method in that script is called (if it's being called at all).
The next time you run into that, share the code with us. It could be something as simple as a missing semicolon, or even an extra/unnecessary...
I'm not sure which part you're struggling with, but the re-assignment logic would just be something like this: // Store a temporary reference to...
Sounds like you potentially have duplicate script files in your project (two MainMenu scripts/classes).
https://stackoverflow.com/a/4307487
Yep, I suspect something wonky is going on with this line of code: if (player.Name + " menu" ==...
It does, however, have a "length" property that you could use to create a custom timer! When the time is up, the sound has finished playing.
OnTriggernter2D? o_O https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnTriggerEnter2D.html Gotta be extra careful when typing the method...
Can you show a pic of your Rigidbody settings? Also, could you share your script responsible for moving the player? (And when sharing code,...
Are you sure the "if" statement is really the problem, or is it that OnCollisionEnter isn't being called at all? Try placing a Debug.Log inside...
I wish that were the case, but no. The video he linked not only shows the Item Collector script being attached to the player (rather than the...
The second screenshot shows the Item Collector script attached to the Pineapple (I highly doubt that's what the tutorial showed you; why would a...
It sounds like this is what you're after: https://docs.unity3d.com/ScriptReference/Resources.Load.html
Are you sure you gave your character a Rigidbody component (or in the case of a 2D game, a Rigidbody2D)?
That script is chock full of issues (like polling for input inside of FixedUpdate). More importantly though, please don't necropost. This topic...
Can you post the entire error message? Also, how to read/decipher error messages:...
Stop what you're doing and go take some basic C# courses! Here's a great starting point from Unity themselves:...
When you load a scene (either "all at once" or asynchronously) you have access to two different modes: Single, which basically wipes out any...
Yep, be sure to read the Kinematic Rigidbody documentation (linked in my last post) carefully. Kinematic Rigidbodies do not collide with Static...