This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AW_2025/Assets/Scripts/SJM/UI.cs
2025-02-24 15:18:12 +09:00

46 lines
722 B
C#

using UnityEngine;
public class UI : MonoBehaviour
{
public bool panelState;
public GameObject panel;
public Transform playerPosition;
public int i;
void Start()
{
panelState = false;
panel.SetActive(false);
}
public void Active()
{
panel.SetActive(true);
panelState = true;
}
public void Destroy()
{
panel.SetActive(false);
panelState = false;
}
/*
public void LookPlayer(Transform player)
{
transform.LookAt(player);
}
*/
/*
private void Update()
{
if (panelState == true)
{
transform.LookAt(playerPosition);
}
}
*/
}