Hey Guys;
I am not a coder by any means, as I use 3rd party visual scripting tools, so I am reaching out for help. Can someone please help me convert these two small scripts into two usable NGUI scripts?
The first one is for the players score display:
//varible for points
public var scorePoints :float = 0;
function OnGUI ()
{
// Score
GUILayout.BeginArea(Rect(Screen.width - 730 ,712,220,80));
GUILayout.Label("" + scorePoints.ToString());
GUILayout.EndArea();
}
The second one is for the Player lives display:
//variable for lives
public var lives :float = 3;
function OnGUI ()
{
// Balls
GUILayout.BeginArea(Rect(Screen.width - 915 ,280,220,80));
GUILayout.Label("" + lives.ToString());
GUILayout.EndArea();
}
I have 2 UIWidget's (UILabel) attached to the Camera in the 2D Root. The score one is called: ScorePoints The Lives one is called: BallsRemain which I would like to display the required information.
This is the last thing holding me up from releasing the game, so any and all help is greatly appreciated.
Thanks in advance.