Im getting an error saying I can only call GUI functions from within GUI, but it is!
function OnGUI ()
{
GUI.skin.font = fontBig;
GUI.Label(Rect(10,10,200,100),"Round " + round);
GUI.Label(Rect(10,Screen.height - 50,200,100),"Health: " + currentHealth);
GUI.Label(Rect(Screen.width - 180,Screen.height - 100,200,100),currentGunName);
GUI.Label(Rect(Screen.width - 100,Screen.height - 70,200,100), clip.ToString());
GUI.skin.font = fontSmall;
GUI.Label(Rect(Screen.width - 100,Screen.height - 50,200,100),"Ammo: " + ammo);
}
↧