修改框架

This commit is contained in:
MuHua-123
2025-05-23 10:02:02 +08:00
parent 264c0df234
commit 1ddf587927
34 changed files with 420 additions and 46 deletions
@@ -1,27 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MuHua {
/// <summary>
/// 数据可视化
/// </summary>
public class ModuleVisual {
/// <summary> 创建可视化内容 </summary>
public static void Create<Type>(ref Type value, Transform original, Transform parent) {
if (value != null) { return; }
Transform temp = CreateTransform(original, parent);
value = temp.GetComponent<Type>();
}
/// <summary> 创建Transform </summary>
public static Transform CreateTransform(Transform original, Transform parent) {
Transform temp = Transform.Instantiate(original, parent);
temp.gameObject.SetActive(true);
return temp;
}
/// <summary> 删除可视化内容 </summary>
public static void Remove<Type>(Type visual) where Type : Component {
if (visual != null) { GameObject.Destroy(visual.gameObject); }
}
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: aff4fda1c9fd8164384489f6750e34f4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: