TaiZhouCangChu_VRanime/Assets/Scripts/MoveManager.cs

33 lines
828 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum ButtonClickType
{
,
}
public class MoveManager : MonoBehaviour
{
public GameObject[] game;
void Start()
{
for (int i = 0; i < game.Length; i++)
{
if (game[i].name == GameInfo.Instance.AnimName)
{ Debug.Log(GameInfo.Instance.AnimName);
GameObject.Find("VRPlayer").transform.position=game[i].transform.position;
GameObject.Find("VRPlayer").transform.rotation = game[i].transform.rotation;
string n = GameInfo.Instance.AnimName + "UI";
Debug.Log(n);
GameObject.Find("CanvasUI").transform.Find(n).gameObject.SetActive(true);
}
}
}
}