Hi, I'm doing the tutorial for unity for the 2.5D space invador / Galaga game, and im up to were we start scripting the lives and score. When i save my script, i get no errors, but the lives / score doesn't show up when i play the game. I'm sorry to post a script, so you can skip it if you need to. (This is the player script for were i'm up to, its C#)
using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
//__________________________________________________ ______
//Graphical User Interface
void onGUI()
{
//calculates from the upper-left corner of screen
GUI.Label (new Rect (10, 10, 60, 20), "Score: " + Player.Score.ToString());
GUI.Label (new Rect (0, 30, 60, 20), "Lives: " + Player.Lives.ToString());
}
}