feat():大改前的提交,这个版本保存了所有冗余的代码
This commit is contained in:
20
Assets/Script/UI/FacilityComponentEditViewer.cs
Normal file
20
Assets/Script/UI/FacilityComponentEditViewer.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user