Синтаксис:
Используется javascript
var aTexture : Texture;
function OnGUI() {
if(Event.current.type.Equals(EventType.Repaint))
Graphics.DrawTexture(Rect(Screen.height/2-100, Screen.width/2-100,10,10), aTexture);
}
function OnGUI() {
if(Event.current.type.Equals(EventType.Repaint))
Graphics.DrawTexture(Rect(Screen.height/2-100, Screen.width/2-100,10,10), aTexture);
}