Scripting beginner

Hello
What’s the difference between
rb = GetComponent.<Rigidbody>();
AND
rb = gameObject.GetComponent.<Rigidbody>();

nothing

the “gameObject” refers to the current GameObject the script is attached to, which is the default when it’s left out

1 Like