TwinObject 내 불필요 코드 삭제
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f7ab64367eb074498afe02ab1069901
|
||||
Reference in New Issue
Block a user