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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Script/UI/FacilityComponentEditViewer.cs.meta
Normal file
3
Assets/Script/UI/FacilityComponentEditViewer.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 126d8afe0e304d548dc13c4df6405e17
|
||||
timeCreated: 1760671378
|
24
Assets/Script/UI/PlayerEditPanelViewer.cs
Normal file
24
Assets/Script/UI/PlayerEditPanelViewer.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using Core;
|
||||
using Gameplay.Player;
|
||||
using Script.Gameplay.Facility;
|
||||
|
||||
namespace UI
|
||||
{
|
||||
public class PlayerEditPanelViewer : UIBase
|
||||
{
|
||||
private PlayerEditController controller;
|
||||
private FacilityController currentFacilityController;
|
||||
private void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// 根据currentFacilityController 生成其对应的组件
|
||||
private void GenerateComponent()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
3
Assets/Script/UI/PlayerEditPanelViewer.cs.meta
Normal file
3
Assets/Script/UI/PlayerEditPanelViewer.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29d585e25c3a4840871167630b3c7a49
|
||||
timeCreated: 1760670557
|
@@ -13,7 +13,7 @@ namespace UI
|
||||
|
||||
private void Start()
|
||||
{
|
||||
UIViewerControllerLocator.Instance.TryGetWait<PlayerController>(OnGet);
|
||||
ControllerLocator.Instance.TryGetWait<PlayerController>(OnGet);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
Reference in New Issue
Block a user