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.

48 lines
1.3 KiB

4 years ago
  1. using ARLocation;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using UnityEngine;
  7. using UnityEngine.UI;
  8. using UnityEngine.UIElements;
  9. public class OnOff : MonoBehaviour
  10. {
  11. public GameObject[] Navi;
  12. public GameObject box;
  13. public Material[] material;
  14. public void _PathWay()
  15. {
  16. gameObject.GetComponent<PlaceAtLocations>().enabled = true;
  17. }
  18. public void PathPressButton()
  19. {
  20. GameObject child = transform.Find("Path_Panel").gameObject;
  21. child.SetActive(!child.active);
  22. }
  23. public void A_Button()
  24. {
  25. GameObject child2 = transform.Find("Path_Panel/FirstPath_Panel").gameObject;
  26. child2.SetActive(!child2.active);
  27. }
  28. public void StartButton()
  29. {
  30. GameObject child1 = transform.Find("NaviStart_Panel").gameObject;
  31. child1.SetActive(true);
  32. }
  33. public void NaviStartButton()
  34. {
  35. box.SetActive(true);
  36. Navi[0].GetComponent<MoveAlongPath>().PlaybackSettings.Speed = 3f;
  37. Navi[0].GetComponent<MoveAlongPath>().PlaybackSettings.AutoPlay = true;
  38. }
  39. public void HotsTest()
  40. {
  41. GameObject child3 = transform.Find("Building_Description_Panel").gameObject;
  42. child3.SetActive(true);
  43. }
  44. }