优化代码

This commit is contained in:
monitor1394
2019-07-25 21:10:57 +08:00
parent d024f37cd5
commit a1dc6ca8ad
8 changed files with 2 additions and 26 deletions

View File

@@ -84,7 +84,7 @@ namespace XCharts
{
obj = new GameObject();
obj.name = name;
obj.transform.parent = parent;
obj.transform.SetParent(parent);
obj.transform.localScale = Vector3.one;
obj.transform.localPosition = Vector3.zero;
}