优化一些脚本
This commit is contained in:
parent
1fac5ecda0
commit
76141e9981
|
@ -257,7 +257,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: 1813878352}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -345,3 +346,100 @@ Transform:
|
|||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1813878351
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1813878352}
|
||||
- component: {fileID: 1813878354}
|
||||
- component: {fileID: 1813878353}
|
||||
m_Layer: 0
|
||||
m_Name: Tips
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1813878352
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1813878351}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 6.0841, z: 0}
|
||||
m_LocalScale: {x: 0.11481021, y: 0.11481021, z: 0.11481021}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 960966155}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!102 &1813878353
|
||||
TextMesh:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1813878351}
|
||||
m_Text: "<color=yellow>\u6309\u952ES\u663E\u793AUI\uFF0C\u6309\u952EH\u5173\u95EDUI\uFF0C\u6309\u952EE\u63A7\u5236\u7269\u4F53\u53D8\u8272\uFF0C\u6309\u952EV\u8DF3\u573A\u666F</color>"
|
||||
m_OffsetZ: 0
|
||||
m_CharacterSize: 1
|
||||
m_LineSpacing: 1
|
||||
m_Anchor: 1
|
||||
m_Alignment: 0
|
||||
m_TabSize: 4
|
||||
m_FontSize: 53
|
||||
m_FontStyle: 0
|
||||
m_RichText: 1
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Color:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
--- !u!23 &1813878354
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1813878351}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -45,10 +45,7 @@ public class ScenesManager
|
|||
LoadSceneMode loadSceneMode = LoadSceneMode.Single)
|
||||
{
|
||||
AsyncOperation ao = SceneManager.LoadSceneAsync(sceneName, loadSceneMode);
|
||||
while (!ao.isDone)
|
||||
{
|
||||
action?.Invoke();
|
||||
yield return null;
|
||||
}
|
||||
yield return ao;
|
||||
action?.Invoke();
|
||||
}
|
||||
}
|
|
@ -22,7 +22,8 @@ public class TestScene1Manager : MonoBehaviour
|
|||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 1f);
|
||||
Bootstrap.Instance.scenesManager.LoadSceneAsyn("TestScene", () =>
|
||||
{
|
||||
Debug.Log("加载场景成功");
|
||||
Debug.Log("加载TestScene 场景成功");
|
||||
///5 为进度条速度
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 5f);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -22,7 +22,7 @@ public class TestSceneManager : MonoBehaviour
|
|||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 1f);
|
||||
Bootstrap.Instance.scenesManager.LoadSceneAsyn("TestScene1", () =>
|
||||
{
|
||||
Debug.Log("加载场景成功");
|
||||
Debug.Log("加载TestScene1 场景成功");
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 5f);
|
||||
});
|
||||
});
|
||||
|
@ -43,7 +43,7 @@ public class TestSceneManager : MonoBehaviour
|
|||
|
||||
private void OnDisable()
|
||||
{
|
||||
Debug.Log("OnDisable");
|
||||
Debug.Log("跳转场景或者关闭脚本要移除监听");
|
||||
if (Bootstrap.Instance != null)
|
||||
{
|
||||
Bootstrap.Instance.eventCenter.RemoveEventListener(Enum_EventType.TestEvent1, TestFunc1);
|
||||
|
|
|
@ -6,10 +6,10 @@ EditorUserSettings:
|
|||
serializedVersion: 4
|
||||
m_ConfigSettings:
|
||||
RecentlyUsedSceneGuid-0:
|
||||
value: 0609045307065a5d5a0d0874407b5944124f1e72787b2465287e1f36b0b8316f
|
||||
value: 5754060550000c5e59580a2348270d44434e1b782a7b7633747e1e30e4b5616b
|
||||
flags: 0
|
||||
RecentlyUsedSceneGuid-1:
|
||||
value: 5754060550000c5e59580a2348270d44434e1b782a7b7633747e1e30e4b5616b
|
||||
value: 0609045307065a5d5a0d0874407b5944124f1e72787b2465287e1f36b0b8316f
|
||||
flags: 0
|
||||
RecentlyUsedSceneGuid-2:
|
||||
value: 5a5757560101590a5d0c0e24427b5d44434e4c7a7b7a23677f2b4565b7b5353a
|
||||
|
|
Loading…
Reference in New Issue