CheckIsUse.cs 500 B

1234567891011121314151617181920212223242526272829
  1. using Immersal.AR;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class CheckIsUse : MonoBehaviour
  7. {
  8. public Toggle t;
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. }
  13. // Update is called once per frame
  14. void Update()
  15. {
  16. if (ARSpace.isFind)
  17. {
  18. t.interactable = true;
  19. }
  20. else
  21. {
  22. t.interactable = false;
  23. }
  24. }
  25. }