Code
using UnityEngine;
using System.Collections;
public class Health : MonoBehaviour {
public int health;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
// Создаём GUI текстуры:
GUI.Box(new Rect(10,10,300,25),"");
GUI.Box(new Rect(10,10,health*3,25),"");
}
}
Я как бы еще нуб, по "человечески" можно обьяснить?:)