hide debug text

master
tigerchen 6 years ago
parent c4a51cd9fb
commit f28e9d0dd7
  1. 2
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Scenes/Ice.unity
  2. 1
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Scripts/DebugUI.cs

@ -1474,7 +1474,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: 850, y: -520} m_AnchoredPosition: {x: 850, y: 500}
m_SizeDelta: {x: 160, y: 80} m_SizeDelta: {x: 160, y: 80}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1269857430 --- !u!114 &1269857430

@ -174,6 +174,7 @@ public class DebugUI : MonoBehaviour
target.GetComponent<Renderer>().enabled = isShowed; target.GetComponent<Renderer>().enabled = isShowed;
emitter.GetComponent<Renderer>().enabled = isShowed; emitter.GetComponent<Renderer>().enabled = isShowed;
button.GetComponentInParent<Button>().image.enabled = isShowed; button.GetComponentInParent<Button>().image.enabled = isShowed;
button.GetComponent<Text>().enabled = isShowed;
} }
private void switchButtonStat() private void switchButtonStat()

Loading…
Cancel
Save