feat():完成3种模式的基本运行框架
This commit is contained in:
20
Assets/Script/Gameplay/UI/EditableComponentViewer.cs
Normal file
20
Assets/Script/Gameplay/UI/EditableComponentViewer.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Core;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
namespace UI
|
||||
{
|
||||
public class EditableComponentViewer : 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