diff --git a/Assets/Aster/Common/Utils/AsterUtils.cs b/Assets/Aster/Common/Utils/AsterUtils.cs index b649056e1cc5dd80242089b0c3c88bfb911a3554..79615fe1ce5287d8c7e7d6abd7578b1d535df24c 100644 --- a/Assets/Aster/Common/Utils/AsterUtils.cs +++ b/Assets/Aster/Common/Utils/AsterUtils.cs @@ -105,7 +105,7 @@ namespace Aster if (target == null) return; - obj?.SetParent(target.transform, resetTrans); + obj?.transform.SetParent(target.transform, resetTrans); } public static void SetActiveSafe(this GameObject obj, bool active) diff --git a/Assets/Aster/ECS/AsterEcsComponents.cs b/Assets/Aster/ECS/AsterEcsComponents.cs index b55b6f995dab9f474f4e92a33265f4db2c0fbb14..cf72f441e914d736cc1e9f46dcbfc31d3b1a6c8c 100644 --- a/Assets/Aster/ECS/AsterEcsComponents.cs +++ b/Assets/Aster/ECS/AsterEcsComponents.cs @@ -11,7 +11,7 @@ using Unity.Entities; using Unity.Mathematics; using UnityEngine; -namespace Aster +namespace Aster.ECS { public struct ATransform : IComponentData