인벤토리 기능 추가

This commit is contained in:
2026-01-27 00:34:47 +09:00
parent 658cd58e30
commit 48466bcc0f
73 changed files with 4779 additions and 228 deletions

View File

@@ -16,7 +16,16 @@ public class ResourceManager
return null;
}
return Object.Instantiate(prefab, parent);
GameObject go = Object.Instantiate(prefab, parent);
int index = go.name.IndexOf("(Clone)");
if (index >= 0)
{
// go.name = go.name.Substring(0, index);
go.name = go.name.Remove(index);
}
return go;
}
public void Destroy(GameObject go)