Commit 26bfb6b8edcdb7e801f9a0b7d3a924d44547e9e3
1 parent
4334b6c1
Exists in
master
and in
9 other branches
Retirada de codigo desnecessario e correcao de funcao de botao
Showing
2 changed files
with
1 additions
and
75 deletions
Show diff stats
Assets/Scenes/Main.unity
... | ... | @@ -3331,7 +3331,7 @@ MonoBehaviour: |
3331 | 3331 | m_StringArgument: |
3332 | 3332 | m_BoolArgument: 0 |
3333 | 3333 | m_CallState: 2 |
3334 | - - m_Target: {fileID: 184541034} | |
3334 | + - m_Target: {fileID: 317863996} | |
3335 | 3335 | m_MethodName: SetActive |
3336 | 3336 | m_Mode: 6 |
3337 | 3337 | m_Arguments: |
... | ... | @@ -3943,7 +3943,6 @@ RectTransform: |
3943 | 3943 | - {fileID: 2105787743} |
3944 | 3944 | - {fileID: 1800578778} |
3945 | 3945 | - {fileID: 1927199758} |
3946 | - - {fileID: 1810516949} | |
3947 | 3946 | m_Father: {fileID: 0} |
3948 | 3947 | m_RootOrder: 1 |
3949 | 3948 | m_AnchorMin: {x: 0, y: 0} |
... | ... | @@ -10056,8 +10055,6 @@ MonoBehaviour: |
10056 | 10055 | label: {fileID: 1532595312} |
10057 | 10056 | textEntry: {fileID: 578706384} |
10058 | 10057 | translate: {fileID: 541516825} |
10059 | - bar: {fileID: 0} | |
10060 | - debugLine: {fileID: 1810516950} | |
10061 | 10058 | --- !u!1 &1809194437 |
10062 | 10059 | GameObject: |
10063 | 10060 | m_ObjectHideFlags: 0 |
... | ... | @@ -10165,66 +10162,6 @@ CanvasRenderer: |
10165 | 10162 | type: 2} |
10166 | 10163 | m_PrefabInternal: {fileID: 0} |
10167 | 10164 | m_GameObject: {fileID: 1809194437} |
10168 | ---- !u!1 &1810516948 | |
10169 | -GameObject: | |
10170 | - m_ObjectHideFlags: 0 | |
10171 | - m_PrefabParentObject: {fileID: 0} | |
10172 | - m_PrefabInternal: {fileID: 0} | |
10173 | - serializedVersion: 4 | |
10174 | - m_Component: | |
10175 | - - 224: {fileID: 1810516949} | |
10176 | - - 222: {fileID: 1810516951} | |
10177 | - - 114: {fileID: 1810516950} | |
10178 | - m_Layer: 5 | |
10179 | - m_Name: debug_line | |
10180 | - m_TagString: Untagged | |
10181 | - m_Icon: {fileID: 0} | |
10182 | - m_NavMeshLayer: 0 | |
10183 | - m_StaticEditorFlags: 0 | |
10184 | - m_IsActive: 0 | |
10185 | ---- !u!224 &1810516949 | |
10186 | -RectTransform: | |
10187 | - m_ObjectHideFlags: 0 | |
10188 | - m_PrefabParentObject: {fileID: 0} | |
10189 | - m_PrefabInternal: {fileID: 0} | |
10190 | - m_GameObject: {fileID: 1810516948} | |
10191 | - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | |
10192 | - m_LocalPosition: {x: 0, y: 0, z: 0} | |
10193 | - m_LocalScale: {x: 1, y: 1, z: 1} | |
10194 | - m_Children: [] | |
10195 | - m_Father: {fileID: 782282766} | |
10196 | - m_RootOrder: 12 | |
10197 | - m_AnchorMin: {x: .5, y: 0} | |
10198 | - m_AnchorMax: {x: .5, y: 0} | |
10199 | - m_AnchoredPosition: {x: 0, y: 365} | |
10200 | - m_SizeDelta: {x: 456, y: 1} | |
10201 | - m_Pivot: {x: .5, y: .5} | |
10202 | ---- !u!114 &1810516950 | |
10203 | -MonoBehaviour: | |
10204 | - m_ObjectHideFlags: 0 | |
10205 | - m_PrefabParentObject: {fileID: 0} | |
10206 | - m_PrefabInternal: {fileID: 0} | |
10207 | - m_GameObject: {fileID: 1810516948} | |
10208 | - m_Enabled: 1 | |
10209 | - m_EditorHideFlags: 0 | |
10210 | - m_Script: {fileID: -98529514, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | |
10211 | - m_Name: | |
10212 | - m_EditorClassIdentifier: | |
10213 | - m_Material: {fileID: 0} | |
10214 | - m_Color: {r: 1, g: 0, b: 0, a: 1} | |
10215 | - m_Texture: {fileID: 0} | |
10216 | - m_UVRect: | |
10217 | - serializedVersion: 2 | |
10218 | - x: 0 | |
10219 | - y: 0 | |
10220 | - width: 1 | |
10221 | - height: 1 | |
10222 | ---- !u!222 &1810516951 | |
10223 | -CanvasRenderer: | |
10224 | - m_ObjectHideFlags: 0 | |
10225 | - m_PrefabParentObject: {fileID: 0} | |
10226 | - m_PrefabInternal: {fileID: 0} | |
10227 | - m_GameObject: {fileID: 1810516948} | |
10228 | 10165 | --- !u!1 &1813892961 |
10229 | 10166 | GameObject: |
10230 | 10167 | m_ObjectHideFlags: 0 | ... | ... |
Assets/Scripts/UIManagerTextEntry.cs
... | ... | @@ -7,9 +7,6 @@ public class UIManagerTextEntry : UIManager { |
7 | 7 | public GameObject label; |
8 | 8 | public GameObject textEntry; |
9 | 9 | public Button translate; |
10 | - public GameObject bar; | |
11 | - | |
12 | - public RawImage debugLine; | |
13 | 10 | |
14 | 11 | protected override void rebuild() |
15 | 12 | { |
... | ... | @@ -21,12 +18,6 @@ public class UIManagerTextEntry : UIManager { |
21 | 18 | back.transform.position = new Vector3(dist, Screen.height - dist); |
22 | 19 | } |
23 | 20 | |
24 | - // bar | |
25 | - { | |
26 | - bar.transform.localScale = new Vector3(base.scale, base.scale, 1); | |
27 | - bar.transform.position -= new Vector3(0, 100 * (1F - base.scale), 0); | |
28 | - } | |
29 | - | |
30 | 21 | float labelHeight = 187.5F * base.scale; |
31 | 22 | float labelDist = labelHeight * 0.75F; |
32 | 23 | |
... | ... | @@ -53,8 +44,6 @@ public class UIManagerTextEntry : UIManager { |
53 | 44 | float marginTop = labelBottom + margin; |
54 | 45 | float marginBottom = barTop + translateHeight + (translateHeight / 2) + margin; |
55 | 46 | |
56 | - debugLine.transform.position = new Vector3(debugLine.transform.position.x, barTop, 0); | |
57 | - | |
58 | 47 | float height = Screen.height - marginTop - marginBottom; |
59 | 48 | |
60 | 49 | Vector2 size = textEntry.GetComponent<RectTransform>().sizeDelta; | ... | ... |