﻿using UnityEngine;
using System.Collections;

public class MapScript : MonoBehaviour {

    bool mapActive = false;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public void setMapActivation(bool b)
    {
        mapActive = b;
    }

    void OnGUI()
    {

        if (mapActive)
        {
            float sw = Screen.width;
            float sh = Screen.height;

            GUI.Button(new Rect(0, 0, sw - sw / 10, sh - sh / 10), "");

        }
       
    }

    public bool returnMapActivation()
    {
        return mapActive;
    }
}
