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
48 lines
1.3 KiB
using ARLocation;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.UIElements;
|
|
|
|
public class OnOff : MonoBehaviour
|
|
{
|
|
public GameObject[] Navi;
|
|
public GameObject box;
|
|
public Material[] material;
|
|
|
|
|
|
public void _PathWay()
|
|
{
|
|
gameObject.GetComponent<PlaceAtLocations>().enabled = true;
|
|
}
|
|
public void PathPressButton()
|
|
{
|
|
GameObject child = transform.Find("Path_Panel").gameObject;
|
|
child.SetActive(!child.active);
|
|
}
|
|
public void A_Button()
|
|
{
|
|
GameObject child2 = transform.Find("Path_Panel/FirstPath_Panel").gameObject;
|
|
child2.SetActive(!child2.active);
|
|
}
|
|
public void StartButton()
|
|
{
|
|
GameObject child1 = transform.Find("NaviStart_Panel").gameObject;
|
|
child1.SetActive(true);
|
|
}
|
|
public void NaviStartButton()
|
|
{
|
|
box.SetActive(true);
|
|
Navi[0].GetComponent<MoveAlongPath>().PlaybackSettings.Speed = 3f;
|
|
Navi[0].GetComponent<MoveAlongPath>().PlaybackSettings.AutoPlay = true;
|
|
|
|
}
|
|
public void HotsTest()
|
|
{
|
|
GameObject child3 = transform.Find("Building_Description_Panel").gameObject;
|
|
child3.SetActive(true);
|
|
}
|
|
}
|