33 lines
672 B
C#
33 lines
672 B
C#
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);
|
||
}
|
||
}
|
||
}
|