阵容拖拽问题

dev_chengFeng
wangzhenxing 2021-10-15 20:44:11 +08:00
parent 20e70dfffb
commit c30f236943
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ local function OnEndDrag(self, Pointgo, data)
targetInfo.transform.localPosition=Vector3.New(0,-67,0)
else
LogError("targetInfo==nil")
local target=Util.GetGameObject(self.tempInfo.transform, "Demons")
target.transform:SetParent(self.oldGrid.transform)
target.transform:SetSiblingIndex(1)
target.transform.localPosition=Vector3.New(0,-67,0)
return
end