【寻宝迷踪】提交
parent
13777a78cb
commit
bbe2bb6d6d
|
@ -144,7 +144,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {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_SizeDelta: {x: 60, y: 84}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &6226350842825389135
|
--- !u!222 &6226350842825389135
|
||||||
|
@ -378,7 +378,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!224 &3136468929308353954
|
--- !u!224 &3136468929308353954
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -396,6 +396,6 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {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_SizeDelta: {x: 10, y: 10}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -448,7 +448,7 @@ function PlayerLiveView:SetSelfDirectingTag(_isShow,_curPos,_targetPos)
|
||||||
-- end
|
-- end
|
||||||
self.directImg:SetActive(_isShow)
|
self.directImg:SetActive(_isShow)
|
||||||
if _isShow then
|
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))
|
self.directImg:GetComponent("RectTransform").rotation = Quaternion.Euler(Vector3.New(0,0,angle))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue