You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
490 B
25 lines
490 B
using UnityEngine;
|
|
|
|
namespace ARLocation.Utils
|
|
{
|
|
|
|
public class ShowHideSelfOnPointerClick : MonoBehaviour
|
|
{
|
|
private Canvas canvas;
|
|
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
canvas = GetComponent<Canvas>();
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (Input.GetMouseButtonDown(0))
|
|
{
|
|
canvas.enabled = !canvas.enabled;
|
|
}
|
|
}
|
|
}
|
|
}
|