1
This commit is contained in:
@@ -16,7 +16,7 @@ namespace BITKit
|
||||
if (!constraint)
|
||||
{
|
||||
if (!parentSource) return null;
|
||||
constraint = target.gameObject.AddComponent<ParentConstraint>();
|
||||
constraint = target.gameObject.GetOrAddComponent<ParentConstraint>();
|
||||
}
|
||||
|
||||
// 清空已有约束
|
||||
|
Reference in New Issue
Block a user