Beispiel #1
0
 void OnGUI()
 {
     //show chat toggle
     sc.show = GUI.Toggle(new Rect(0, Screen.height / 2, 800, 100), sc.show, "Show Chat");
     //putting a skin or any type of GUI styling will effect what is in the draw function
     GUI.skin = chatSkin;
     sc.draw();
 }
Beispiel #2
0
 void OnGUI()
 {
     sc.draw();
 }