This commit is contained in:
shurongsen 2024-11-12 17:41:06 +08:00
parent 781e30d010
commit e30b300ec7
6 changed files with 31617 additions and 0 deletions

View File

@ -0,0 +1,207 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &171149404175802856
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6405377363278263824}
- component: {fileID: 6106463808080612196}
- component: {fileID: 1852665717396029303}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6405377363278263824
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 171149404175802856}
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: 7338814544308995242}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 615.9412, y: 122.2321}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6106463808080612196
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 171149404175802856}
m_CullTransparentMesh: 1
--- !u!114 &1852665717396029303
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 171149404175802856}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 25
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 40
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u6839\u636E\u6709\u5173\u90E8\u95E8\u7684\u89C4\u5B9A\uFF0C\u7F51\u7EDC\u6E38\u620F\u7528\u6237\u9700\u8981\u4F7F\u7528\u6709\u6548\u8EAB\u4EFD\u4FE1\u606F\u8FDB\u884C\u5B9E\u540D\u6CE8\u518C\uFF0C\u4E3A\u4EAB\u53D7\u5065\u5EB7\u6E38\u620F\u751F\u6D3B\uFF0C\u8BF7\u73A9\u5BB6\u5C3D\u5FEB\u5B9E\u540D\u6CE8\u518C\u3002\u6211\u4EEC\u627F\u8BFA\u5C06\u4E25\u683C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\uFF0C\u4E0D\u4F1A\u5BF9\u5916\u6CC4\u9732\u3002"
--- !u!1 &2866271349562589323
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7338814544308995242}
- component: {fileID: 2093687446910157841}
- component: {fileID: 9194384786870528050}
- component: {fileID: 3303693908695781625}
m_Layer: 5
m_Name: Text_pop
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7338814544308995242
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2866271349562589323}
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: 6405377363278263824}
m_Father: {fileID: 0}
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: 9.5303, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2093687446910157841
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2866271349562589323}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 0
m_Right: 0
m_Top: 0
m_Bottom: 0
m_ChildAlignment: 1
m_Spacing: 0
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0
--- !u!114 &9194384786870528050
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2866271349562589323}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 2
m_VerticalFit: 2
--- !u!114 &3303693908695781625
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2866271349562589323}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d5f05f4b390610b45b78dd10cb4e88c0, type: 3}
m_Name:
m_EditorClassIdentifier:
boxType:
Name:
textName:
prompt:
prompt2:
is_required: 0
content:
Type: 0
icon: {fileID: 0}
icon2: {fileID: 0}
goldNumerobj:
nametext1:
numbertext1:
nametext2:
numbertext2:
widthnum: -1
WidthHeight: -1
Num: 0
details:
button_0_text:
button_1_text:
textobj: {fileID: 0}
promptobj: {fileID: 0}
promptobj2: {fileID: 0}
contentobj: {fileID: 171149404175802856}
iconobj: {fileID: 0}
iconobj2: {fileID: 0}
goldNumerobj: {fileID: 0}
nametextobj1: {fileID: 0}
numbertextobj1: {fileID: 0}
nametextobj2: {fileID: 0}
numbertextobj2: {fileID: 0}
WidthObj: {fileID: 0}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 51b975f682086d34691fad6e7d511175
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -0,0 +1,77 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class qiehuanScenes : MonoBehaviour
{
[Header("按钮,请一一对应")]
public Button btn1;
public Button btn2;
public Button btn3;
public Button btn4;
public Button btn5;
[Header("对应的场景")]
public GameObject scene1;
public GameObject scene2;
public GameObject scene3;
public GameObject scene4;
public GameObject scene5;
[Header("当前场景")]
public GameObject nowScene;
// Start is called before the first frame update
void Awake()
{
btn1.onClick.AddListener(()=> {
if (scene1== nowScene)
{
return;
}
scene1.SetActive(true);
this.nowScene.SetActive(false);
});
btn2.onClick.AddListener(()=> {
if (scene2 == nowScene)
{
return;
}
scene2.SetActive(true);
this.nowScene.SetActive(false);
});
btn3.onClick.AddListener(()=> {
if (scene3 == nowScene)
{
return;
}
scene3.SetActive(true);
this.nowScene.SetActive(false);
});
btn4.onClick.AddListener(()=> {
if (scene4 == nowScene)
{
return;
}
scene4.SetActive(true);
this.nowScene.SetActive(false);
});
btn5.onClick.AddListener(()=> {
if (scene5 == nowScene)
{
return;
}
scene5.SetActive(true);
this.nowScene.SetActive(false);
});
}
}

View File

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