From aae0f8bc17740ac22638630edbb18447ddcf2fe4 Mon Sep 17 00:00:00 2001 From: TongZiGang <754383023@qq.com> Date: Wed, 16 Jul 2025 23:07:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E7=AA=97=E5=8F=A3=E6=A1=86?= =?UTF-8?q?=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UnityGame/Assets/Scenes/MainScene.unity | 160 +++++++++++++++++- .../GameLogic/UI/UILogic/Main/UIMainView.cs | 2 +- UnityGame/Assets/Scripts/GameStar.cs | 1 + UnityGame/ProjectSettings/TagManager.asset | 12 ++ 4 files changed, 166 insertions(+), 9 deletions(-) diff --git a/UnityGame/Assets/Scenes/MainScene.unity b/UnityGame/Assets/Scenes/MainScene.unity index 0c14952..885e4c9 100644 --- a/UnityGame/Assets/Scenes/MainScene.unity +++ b/UnityGame/Assets/Scenes/MainScene.unity @@ -122,6 +122,41 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &160260493 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 160260494} + m_Layer: 5 + m_Name: Notify + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &160260494 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 160260493} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 519418525} + 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, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &225313988 GameObject: m_ObjectHideFlags: 0 @@ -334,7 +369,11 @@ RectTransform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 1788190252} + - {fileID: 649806025} + - {fileID: 160260494} + - {fileID: 1239141039} m_Father: {fileID: 225313989} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} @@ -342,6 +381,41 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &649806024 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 649806025} + m_Layer: 5 + m_Name: Popup + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &649806025 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 649806024} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 519418525} + 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, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &705507993 GameObject: m_ObjectHideFlags: 0 @@ -528,6 +602,41 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1239141038 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1239141039} + m_Layer: 5 + m_Name: System + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1239141039 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1239141038} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 519418525} + 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, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1264505769 GameObject: m_ObjectHideFlags: 0 @@ -557,7 +666,8 @@ Transform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 1765569912} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1264505771 @@ -633,12 +743,12 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1553571835} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 0} + m_Father: {fileID: 1765569912} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1765569911 GameObject: @@ -664,15 +774,51 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1765569911} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 291576391} - {fileID: 225313989} - m_Father: {fileID: 0} + - {fileID: 1553571838} + m_Father: {fileID: 1264505770} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1788190251 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1788190252} + m_Layer: 5 + m_Name: Main + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1788190252 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1788190251} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 519418525} + 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, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 @@ -680,5 +826,3 @@ SceneRoots: - {fileID: 963194228} - {fileID: 705507995} - {fileID: 1264505770} - - {fileID: 1553571838} - - {fileID: 1765569912} diff --git a/UnityGame/Assets/Scripts/GameLogic/UI/UILogic/Main/UIMainView.cs b/UnityGame/Assets/Scripts/GameLogic/UI/UILogic/Main/UIMainView.cs index 72c7348..51e5380 100644 --- a/UnityGame/Assets/Scripts/GameLogic/UI/UILogic/Main/UIMainView.cs +++ b/UnityGame/Assets/Scripts/GameLogic/UI/UILogic/Main/UIMainView.cs @@ -12,7 +12,7 @@ namespace CreatGame.UI private void OnStarBtnClick() { - + Debug.Log("OnStarBtnClick"); } } } \ No newline at end of file diff --git a/UnityGame/Assets/Scripts/GameStar.cs b/UnityGame/Assets/Scripts/GameStar.cs index 241e895..f23baaa 100644 --- a/UnityGame/Assets/Scripts/GameStar.cs +++ b/UnityGame/Assets/Scripts/GameStar.cs @@ -8,6 +8,7 @@ public class GameStar : MonoBehaviour // Start is called before the first frame update void Start() { + DontDestroyOnLoad(gameObject); StartCoroutine(CreatGame.GameLogic.Instance.Start()); } diff --git a/UnityGame/ProjectSettings/TagManager.asset b/UnityGame/ProjectSettings/TagManager.asset index 1c92a78..e5f552c 100644 --- a/UnityGame/ProjectSettings/TagManager.asset +++ b/UnityGame/ProjectSettings/TagManager.asset @@ -41,3 +41,15 @@ TagManager: - name: Default uniqueID: 0 locked: 0 + - name: Main + uniqueID: 4208407477 + locked: 0 + - name: Popup + uniqueID: 3984180815 + locked: 0 + - name: Notify + uniqueID: 3442081227 + locked: 0 + - name: System + uniqueID: 4291409731 + locked: 0