24 lines
387 B
C#
24 lines
387 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class ui_map_button : MonoBehaviour{
|
||
|
|
public GameObject Toolbox;
|
||
|
|
public GameObject MapPanel;
|
||
|
|
public bool MapActive;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
public void ToggleMap(){
|
||
|
|
MapActive = !MapActive;
|
||
|
|
|
||
|
|
if (MapActive){
|
||
|
|
Toolbox.SetActive(false);
|
||
|
|
}
|
||
|
|
else{
|
||
|
|
Toolbox.SetActive(true);
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|