2025-10-17 15:10:19 +08:00
|
|
|
using Core;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine;
|
|
|
|
namespace UI
|
|
|
|
{
|
2025-10-18 08:55:38 +08:00
|
|
|
public class EditableComponentViewer : MonoBehaviour
|
2025-10-17 15:10:19 +08:00
|
|
|
{
|
|
|
|
public Component component;
|
|
|
|
public bool IsOpen;
|
2025-10-18 08:55:38 +08:00
|
|
|
|
2025-10-17 15:10:19 +08:00
|
|
|
public void SetComponent()
|
|
|
|
{
|
|
|
|
if (component != null)
|
|
|
|
{
|
|
|
|
IsOpen = !IsOpen;
|
|
|
|
component.gameObject.SetActive(IsOpen);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|