20 lines
412 B
C#
20 lines
412 B
C#
|
using Core;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine;
|
||
|
namespace UI
|
||
|
{
|
||
|
public class FacilityComponentEditViewer : MonoBehaviour
|
||
|
{
|
||
|
public Component component;
|
||
|
public bool IsOpen;
|
||
|
|
||
|
public void SetComponent()
|
||
|
{
|
||
|
if (component != null)
|
||
|
{
|
||
|
IsOpen = !IsOpen;
|
||
|
component.gameObject.SetActive(IsOpen);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|