TTTN1997 il y a 1 an
Parent
commit
87246438f8
1 fichiers modifiés avec 11 ajouts et 5 suppressions
  1. 11 5
      Assets/Scripts/Mono/UI/Panel/InputPanel.cs

+ 11 - 5
Assets/Scripts/Mono/UI/Panel/InputPanel.cs

@@ -59,11 +59,10 @@ namespace Mono
                 UIManager.Instance.PlayAudioClip("UI_ButtonClick");
                 
                 
-                ShowTextPanel showTextPanel = UIManager.Instance.LoadAndOpenPanel<ShowTextPanel>(UIManager.UILayer.Middle);
-                showTextPanel.ShowText(3);
+
                 
-                UIManager.Instance.HideUIPanel<InputPanel>();
-                // UIManager.Instance.LoadAndOpenPanel<MainScenePanel>(UIManager.UILayer.Middle);
+                UIManager.Instance.HideUIPanel<InputPanel>(); 
+                UIManager.Instance.LoadAndOpenPanel<MainScenePanel>(UIManager.UILayer.Middle);
                 
                 Destroy(Map);
                 Destroy(Npc);
@@ -109,7 +108,14 @@ namespace Mono
             Btn_Retrun.gameObject.SetActive(true);
             Mask.gameObject.SetActive(true);
             
-       
+            
+            TimeComponent.Instance.AddTimer(12f, () =>
+            {
+                ShowTextPanel showTextPanel = UIManager.Instance.LoadAndOpenPanel<ShowTextPanel>(UIManager.UILayer.Middle);
+                showTextPanel.ShowText(3);
+            });
+            
+         
            
            
             Player.Instance = null;