Thats is my code but o think all is right but console writing me “Unexpected symbol GUI”
Thanks for all
using UnityEngine;
using System.Collections;
public class Gracz : MonoBehaviour {
public int MaxHP;
public int HP;
public int Glod;
public int Woda;
public int Sen;
public GUISkin skinHP;
// Use this for initialization
void Start () {
MaxHP = 100;
HP = MaxHP;
Glod = 100;
Sen = 100;
Woda = 100;
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
GUI.skin = skinHP;
GUI.Box (new Rect (10, 10, 200, 50), "Zycie: " + HP);
}
}