GQ_Communicate/GQ_URP/GQ/Assets/script/容量/VolumeUI.cs

33 lines
672 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VolumeUI : CabinetUIBase
{
public static Transform Camera;
public VolumeImg VolumeImg;
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);
}
}
}