I cant figure out whats wrong any help would be appreciated… Thanks in advance !!
using UnityEngine;
using System.Collections;
public class mouseover : MonoBehaviour
{
var showGUI : boolean = false;
void onMouseOver () {
showGUI = true;
}
void onMouseExit () {
showGUI = false;
}
void onGUI () {
if(showGUI)
GUI.Label (Rect (10,10,100,20), "Chop down Tree");
}
}