33 lines
699 B
C#
33 lines
699 B
C#
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using UnityEngine;
|
||
|
||
public class DigitalTwinPanel : CabinetUIBase
|
||
{
|
||
public static Transform Camera;
|
||
// Start is called before the first frame update
|
||
void Start()
|
||
{
|
||
Camera = UnityEngine.Camera.main.transform;
|
||
}
|
||
|
||
// Update is called once per frame
|
||
void Update()
|
||
{
|
||
transform.eulerAngles = Camera.eulerAngles;
|
||
}
|
||
|
||
public override void OnMenuChanged(Menu menu)
|
||
{
|
||
base.OnMenuChanged(menu);
|
||
if (menu == Menu.M_Êý×ÖÂÏÉú_ÖÇÄÜѲ¼ì)
|
||
{
|
||
gameObject.SetActive(true);
|
||
}
|
||
else
|
||
{
|
||
gameObject.SetActive(false);
|
||
}
|
||
}
|
||
}
|