Well, that totally depends on what current health system you have! But generally, assuming you already do have some manner of health system set up, the C# method is pretty much exactly the same as the JS method. Like so:
GUIText healthGUI;
void Update () {
healthGUI.text = yourHealthVar.ToString();
}
Hope that helps, Klep
↧