TwinObject 내 불필요 코드 삭제

This commit is contained in:
wsh
2025-03-20 10:33:24 +09:00
parent 31fc37b026
commit 94589d4390
44 changed files with 3931 additions and 2803 deletions

View File

@@ -1,34 +0,0 @@
using UnityEngine;
namespace XED
{
public class Tester : MonoBehaviour
{
HierarchyPanel ph;
HierarchyTree ht;
GameObject renderObjectPrefab;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
ph=FindObjectOfType<HierarchyPanel>();
ht = new HierarchyTree();
ht.onAddEvent += ph.AddItem;
ph.OnItemDropOnItem += ht.Attach;
ht.onDataUpdate += ph.UpdateIndex;
ph.onItemDrop += ht.Dettach;
renderObjectPrefab = Resources.Load<GameObject>("Prefabs/PRF_RenderObject");
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.A))
{
var obj = Instantiate(renderObjectPrefab);
var to = obj.GetComponent<TwinObject>();
to.name = to.name.Replace("(Clone)", "");
ht.Add(to);
}
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 2f7ab64367eb074498afe02ab1069901