diff --git a/Assets/Prefabs/DialogueCanvas.prefab b/Assets/Prefabs/DialogueCanvas.prefab index 28b4d4809a05231a3ca99f279a5ff36f271c5e9f..cac1d108cfdcef7f6d48d31869b0f15fd2a31188 100644 --- a/Assets/Prefabs/DialogueCanvas.prefab +++ b/Assets/Prefabs/DialogueCanvas.prefab @@ -36,7 +36,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: -750.00006, y: -264.11722} - m_SizeDelta: {x: 1600.0427, y: 235.83124} + m_SizeDelta: {x: 1600.0427, y: 526.77216} m_Pivot: {x: 0, y: 1} --- !u!222 &3502585139583547296 CanvasRenderer: @@ -321,11 +321,11 @@ RectTransform: m_Father: {fileID: 3502585139583547302} m_RootOrder: 0 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.000061035156, y: 0.000030517578} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 0.000061035156, y: -10} m_SizeDelta: {x: 1582.78, y: 214.52246} - m_Pivot: {x: 0.5, y: 0.5} + m_Pivot: {x: 0.5, y: 1} --- !u!222 &3502585141059889551 CanvasRenderer: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/Dialogue/DialogueManager.cs b/Assets/Scripts/Dialogue/DialogueManager.cs index 7339ca2782a9c5387d74bbcb07a22d3097e632ec..86e3a0422c2226ac7bfe923da69dda4ee2465d9e 100644 --- a/Assets/Scripts/Dialogue/DialogueManager.cs +++ b/Assets/Scripts/Dialogue/DialogueManager.cs @@ -75,6 +75,7 @@ namespace Nudle.Scripts.Dialogue choiceButtons.Add(button); button.transform.SetParent(DialogueCanvas.transform); button.transform.GetChild(0).GetComponent<Text>().text = choice.Text; + button.transform.localScale = Vector3.one; button.onClick.AddListener(() => SelectChoice(choice)); button.GetComponent<RectTransform>().anchoredPosition = new Vector2(0, (i * 100) - 100 + ((5 -count) * 50)); ++i;