SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
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

4 years ago
  1. using UnityEngine;
  2. namespace ARLocation.Utils
  3. {
  4. public class ShowHideSelfOnPointerClick : MonoBehaviour
  5. {
  6. private Canvas canvas;
  7. // Use this for initialization
  8. void Start()
  9. {
  10. canvas = GetComponent<Canvas>();
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. if (Input.GetMouseButtonDown(0))
  16. {
  17. canvas.enabled = !canvas.enabled;
  18. }
  19. }
  20. }
  21. }