I know this might be super simple. Here is my code so far:
#pragma strict
static var currentScore : int = 0;
var offsetX : float = 22.43;
var offsetY : float = 376.6;
var sizeX : float = 148.86;
var sizeY : float = 25.2;
function OnGUI () {
GUI.Box (new Rect (offsetX, offsetY, sizeX, sizeY), "Pages Collected: 4/" + currentScore);
}
I need it so when "currentScore" equals 4 it replaces the "Pages Collected: 4/" To another text. Would this be possible if so can someone help me?
~~Lost Syndicate
↧