Hi, i have a little problem. I am making a gta minimap and when i want to make the north blip, it appears an error like this: Assets/North Blip.js(13,8): BCE0005: Unknown identifier: ‘showMap’. I NEED HELP PLEASE!!!
Here’s the script:
@script ExecuteInEditMode()
var player : Transform;
var mainCamera : Transform;
var mapBorder : Texture2D;
var northBlip : Transform;
var distance : float = 100;
function FixedUpdate(){
transform.position = new Vector3(player.position.x, transform.position.y, player.position.z);
transform.eulerAngles.y = mainCamera.eulerAngles.y;
northBlip.transform.position = new Vector3(player.position.x, player.position.y + 500, player.position.z + distance);
}
function OnGUI(){
if(showMap){
GUI.DrawTexture(new Rect(Screen.width * 0.713f,Screen.height * 0.607f,Screen.width/3, Screen.height/2.7), mapBorder);
camera.Render();
}
}