【寻宝迷踪】提交

dev_chengFeng
ZhangBiao 2021-08-12 12:00:18 +08:00
parent 13777a78cb
commit bbe2bb6d6d
3 changed files with 47693 additions and 133 deletions

View File

@ -144,7 +144,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 100, y: 0}
m_AnchoredPosition: {x: 120, y: 0}
m_SizeDelta: {x: 60, y: 84}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6226350842825389135
@ -378,7 +378,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &3136468929308353954
RectTransform:
m_ObjectHideFlags: 0
@ -396,6 +396,6 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 4}
m_SizeDelta: {x: 10, y: 10}
m_Pivot: {x: 0.5, y: 0.5}

View File

@ -448,7 +448,7 @@ function PlayerLiveView:SetSelfDirectingTag(_isShow,_curPos,_targetPos)
-- end
self.directImg:SetActive(_isShow)
if _isShow then
local angle = math.atan((_targetPos.y - _curPos.y)/(_targetPos.x - _curPos.x))/math.pi*180
local angle = math.atan2((_targetPos.y - _curPos.y),(_targetPos.x - _curPos.x))/math.pi*180
self.directImg:GetComponent("RectTransform").rotation = Quaternion.Euler(Vector3.New(0,0,angle))
end
end