i have a gui text called “text1” in heirarchy… how can i access it through a c# script which is attached to my main camera ?
Java script :
object=GameObject.Find("text1");
text1=object.GetComponent(GUIText);
text1.text="Hello";
c# :
hand = GameObject.Find("text1");
text12=hand.GetComponent(GUIText);
text12.text="haaaaai";
can u tell me wats wrong with my c# script