From 781a6a0644a5a48e8b7c10c71d2b70e6eb07d5da Mon Sep 17 00:00:00 2001 From: mikeleo03 <leonmichael463@gmail.com> Date: Mon, 6 May 2024 09:49:51 +0700 Subject: [PATCH] fix : unremoved talker box --- Assets/Scenes/Level01.unity | 44 +++++++++++----------- Assets/Scripts/Managers/DialogueManager.cs | 1 + 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/Assets/Scenes/Level01.unity b/Assets/Scenes/Level01.unity index 978f3de..3fa8751 100644 --- a/Assets/Scenes/Level01.unity +++ b/Assets/Scenes/Level01.unity @@ -2916,6 +2916,7 @@ GameObject: - component: {fileID: 1105520754} - component: {fileID: 1105520753} - component: {fileID: 1105520752} + - component: {fileID: 1105520756} m_Layer: 5 m_Name: Canvas m_TagString: Untagged @@ -3007,6 +3008,27 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 0} +--- !u!114 &1105520756 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1105520751} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b73053b63279db540a794cc023a28c74, type: 3} + m_Name: + m_EditorClassIdentifier: + textComponent: {fileID: 260399879} + talkerComponent: {fileID: 1062264993} + lines: + - Hello Guys + - Namanya juga uji coba + talker: + - Budi + - Lisa + textSpeed: 0.01 --- !u!1 &1114460011 GameObject: m_ObjectHideFlags: 0 @@ -3805,7 +3827,6 @@ GameObject: - component: {fileID: 1419719117} - component: {fileID: 1419719119} - component: {fileID: 1419719118} - - component: {fileID: 1419719120} m_Layer: 5 m_Name: DialogueBox m_TagString: Untagged @@ -3871,27 +3892,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1419719116} m_CullTransparentMesh: 1 ---- !u!114 &1419719120 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1419719116} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b73053b63279db540a794cc023a28c74, type: 3} - m_Name: - m_EditorClassIdentifier: - textComponent: {fileID: 260399879} - talkerComponent: {fileID: 1062264993} - lines: - - Hello Guys - - Namanya juga uji coba - talker: - - Budi - - Lisa - textSpeed: 0.01 --- !u!1 &1434239552 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/Managers/DialogueManager.cs b/Assets/Scripts/Managers/DialogueManager.cs index 96be052..7a7f975 100644 --- a/Assets/Scripts/Managers/DialogueManager.cs +++ b/Assets/Scripts/Managers/DialogueManager.cs @@ -34,6 +34,7 @@ public class DialogueManager : MonoBehaviour { StopAllCoroutines(); textComponent.text = lines[index]; + talkerComponent.text = talker[index]; } } } -- GitLab