Hi
I'm wondering how this works (it's c#)
GetComponent<myscriptname>();
I always thought a script would have the type Monoscript, but then one should use
GetComponent<MonoScript>();
and it wouldn't be clear which script is returned. It seems like every script has its unique type. However with a unique type this should cause an error
MonoScript myscript=someobject.GetComponent<myscriptname>();
Can someone please help me and explain what is going on there ?