TTTN1997 před 1 rokem
rodič
revize
20ecc99213

+ 13 - 0
Assets/Resources/Canvas.prefab

@@ -404,6 +404,7 @@ GameObject:
   - component: {fileID: 4591470911106441115}
   - component: {fileID: 4591470911106441108}
   - component: {fileID: 5681877715498747450}
+  - component: {fileID: 820990036358367912}
   m_Layer: 5
   m_Name: Canvas
   m_TagString: Untagged
@@ -543,6 +544,18 @@ MonoBehaviour:
     isList: 0
     ListCollectorDatas: []
   isAssetBundle: 0
+--- !u!114 &820990036358367912
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 4591470911106441109}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 09ec6795c309025418a28c3001337c8c, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
 --- !u!1 &8035333688633652909
 GameObject:
   m_ObjectHideFlags: 0

+ 1 - 1
Assets/Resources/UIPanel/StartPanel.prefab

@@ -208,7 +208,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 1
+  m_IsActive: 0
 --- !u!224 &5145079802948576279
 RectTransform:
   m_ObjectHideFlags: 0

+ 0 - 0
Assets/Art/baidicheng.unity → Assets/Scenes/baidicheng.unity


+ 0 - 0
Assets/Art/baidicheng.unity.meta → Assets/Scenes/baidicheng.unity.meta


+ 0 - 0
Assets/Art/main.unity → Assets/Scenes/main.unity


+ 0 - 0
Assets/Art/main.unity.meta → Assets/Scenes/main.unity.meta


+ 17 - 2
Assets/Scripts/AppLauncher.cs

@@ -5,20 +5,35 @@ using UnityEngine;
 
 public class AppLauncher : MonoBehaviour
 {
+    private bool _isStart;
+
     void Start()
     {
         GameObject prefab = Resources.Load<GameObject>("Canvas");
 
         GameObject _gameObject = GameObject.Instantiate(prefab);
         UIManager.Instance.SetUIRoot(_gameObject);
-        UIManager.Instance.LoadAndOpenPanel<StartPanel>(UIManager.UILayer.Middle);
+
 
         ConfigComponent.Instance.Preload();
+        _isStart = true;
+        _timer = 0;
     }
 
+    private float _timer;
+
     // Update is called once per frame
     void Update()
     {
-        
+        if (_isStart)
+        {
+            _timer += Time.deltaTime;
+            if (_timer >= 20)
+            {
+                UIManager.Instance.LoadAndOpenPanel<StartPanel>(UIManager.UILayer.Middle);
+                _isStart = false;
+                _timer = 0;
+            }
+        }
     }
 }

+ 11 - 0
Assets/Scripts/DontDestroyOnLoadTag.cs

@@ -0,0 +1,11 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class DontDestroyOnLoadTag : MonoBehaviour
+{
+    void Awake()
+    {
+        DontDestroyOnLoad(this);
+    }
+}

+ 11 - 0
Assets/Scripts/DontDestroyOnLoadTag.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 09ec6795c309025418a28c3001337c8c
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 5 - 1
Assets/Scripts/Mono/UI/Panel/ChatPanel.cs

@@ -35,7 +35,9 @@ namespace Mono
 
         public bool IsOver;
 
-
+    
+        
+        
         public override void Show()
         {
             base.Show();
@@ -44,6 +46,8 @@ namespace Mono
             UIManager.Instance.PlayBGM("scene02");
             CurIndex = 0;
             Text_Dialogue.Showtext.text = "";
+            
+         
         }
 
         public void Dialogue()

+ 0 - 7
Assets/VolumetricFogBundle/Builtin/VolumetricAndDynamicFog_Builtin.unitypackage.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: eebef07bd4ae74e6981505b540da4731
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 7
Assets/VolumetricFogBundle/URP/VolumetricFog2_URP.unitypackage.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: f9d1b5aa62a634d3cbf33c44a7c04e91
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: