Using the script example from the Unity website, I was not getting the results I expected,
and for newbies to OOP and Unity, I think my question / comment might help others.
when using examples scripts such as …
var ETD_TextMesh: TextMesh = ETD.GetComponent(TextMesh);
without #pragma strict, this will work!
With #pragma strict you need to type it…
var ETD_TextMesh: TextMesh = (ETD.GetComponent(TextMesh) as TextMesh);
(where ETD is a gameobject set by using a find)
So my question was if the conversion is going to add the #pragma strict, and its better to use, why don’t we make sure to add typing and such to our exmples, so the newbies (like me) don’t bang their heads for so long. : ]