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_Panel.cs
2025-02-24 15:18:12 +09:00

43 lines
932 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Animations;
public class UI_Panel : MonoBehaviour
{
private bool panelState;
//public GameObject panel;
public Collider player;
//public List<Collider> playerList = new List<Collider>();
private Transform playerPosition;
void Start()
{
player = GameObject.FindWithTag("Player").GetComponent<Collider>();
panelState = false;
//panel.SetActive(false);
}
private void Update()
{
playerPosition = player.transform;
transform.LookAt(playerPosition);
}
/*
public void PanelActive()
{
if(panelState == false)
{
panel.SetActive(true);
panelState = true;
}
else if(panelState == true)
{
panel.SetActive(false);
panelState = false;
}
}
*/
}