29 lines
498 B
C#
29 lines
498 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using static UnityEngine.Rendering.DebugUI;
|
|
|
|
public class Icon : MonoBehaviour
|
|
{
|
|
public bool panelState;
|
|
public GameObject icon;
|
|
|
|
void Start()
|
|
{
|
|
panelState = true;
|
|
icon.SetActive(true);
|
|
}
|
|
|
|
public void Active()
|
|
{
|
|
icon.SetActive(true);
|
|
panelState = true;
|
|
}
|
|
|
|
public void Destroy()
|
|
{
|
|
icon.SetActive(false);
|
|
panelState = false;
|
|
}
|
|
}
|