Added intro screen.

This commit is contained in:
2026-06-24 14:01:18 -04:00
parent 9f5ec96e18
commit 855679391a
20 changed files with 839 additions and 30 deletions
+654
View File
@@ -0,0 +1,654 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 10
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 13
m_BakeOnSceneLoad: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 2
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 1
m_PVRFilteringGaussRadiusAO: 1
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 3
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
buildHeightMesh: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1001 &265768944
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 695379293392124469, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_Name
value: Faders
objectReference: {fileID: 0}
- target: {fileID: 2430368862052493625, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: fadeDuration
value: 2
objectReference: {fileID: 0}
- target: {fileID: 2430368862052493625, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: callbackScript
value:
objectReference: {fileID: 995609415}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7115921516423370064, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: fadeDuration
value: 2
objectReference: {fileID: 0}
- target: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: callbackScript
value:
objectReference: {fileID: 364082545}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
--- !u!1 &364082544
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 364082546}
- component: {fileID: 364082545}
m_Layer: 0
m_Name: EndSplash
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &364082545
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 364082544}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9dde416d552cd8958925fd470f36454c, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::EndSplash
nextSceneName:
--- !u!4 &364082546
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 364082544}
serializedVersion: 2
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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &422180897
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 422180899}
- component: {fileID: 422180898}
m_Layer: 0
m_Name: Music
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!82 &422180898
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 422180897}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_Resource: {fileID: 8300000, guid: 7eafbf6a753302cd7895930365fa0219, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!4 &422180899
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 422180897}
serializedVersion: 2
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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &579734685
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 579734688}
- component: {fileID: 579734687}
- component: {fileID: 579734686}
- component: {fileID: 579734689}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &579734686
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 579734685}
m_Enabled: 1
--- !u!20 &579734687
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 579734685}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_FocusDistance: 10
m_FocalLength: 50
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &579734688
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 579734685}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &579734689
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 579734685}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a160d838ff8b4b4693ac20007e008c7, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.2D.PixelPerfect::UnityEngine.U2D.PixelPerfectCamera
m_AssetsPPU: 100
m_RefResolutionX: 640
m_RefResolutionY: 480
m_UpscaleRT: 0
m_PixelSnapping: 0
m_CropFrameX: 0
m_CropFrameY: 0
m_StretchFill: 0
--- !u!1 &918351217
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 918351219}
- component: {fileID: 918351218}
- component: {fileID: 918351220}
m_Layer: 0
m_Name: Background
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!212 &918351218
SpriteRenderer:
serializedVersion: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 918351217}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, 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: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_MaskInteraction: 0
m_Sprite: {fileID: -5434643231075287626, guid: 252fb08895be934729f56505d663555e, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 6.4, y: 4.8}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_SpriteSortPoint: 0
--- !u!4 &918351219
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 918351217}
serializedVersion: 2
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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &918351220
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 918351217}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ee75bedbbbf072e1ca4d633925674475, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::IntroSkipper
fadeIn: {fileID: 995609415}
fadeOut: {fileID: 1110237277}
--- !u!1 &995609414
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 995609416}
- component: {fileID: 995609415}
m_Layer: 0
m_Name: Intro
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &995609415
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 995609414}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 594bb1fe3171425d5abf1bba51562952, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intro
music: {fileID: 422180898}
faderScript: {fileID: 1110237277}
--- !u!4 &995609416
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 995609414}
serializedVersion: 2
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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1110237277 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
m_PrefabInstance: {fileID: 265768944}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5620dafb42f459dcfa30ddbbefd24be1, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Fader
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 579734688}
- {fileID: 918351219}
- {fileID: 265768944}
- {fileID: 364082546}
- {fileID: 422180899}
- {fileID: 995609416}
+7
View File
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 398375f61fb73204ab12d352d67e37cb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+31 -1
View File
@@ -396,6 +396,7 @@ GameObject:
- component: {fileID: 519420032} - component: {fileID: 519420032}
- component: {fileID: 519420031} - component: {fileID: 519420031}
- component: {fileID: 519420029} - component: {fileID: 519420029}
- component: {fileID: 519420033}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@@ -477,6 +478,26 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &519420033
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519420028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a160d838ff8b4b4693ac20007e008c7, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.2D.PixelPerfect::UnityEngine.U2D.PixelPerfectCamera
m_AssetsPPU: 100
m_RefResolutionX: 640
m_RefResolutionY: 480
m_UpscaleRT: 0
m_PixelSnapping: 0
m_CropFrameX: 0
m_CropFrameY: 0
m_StretchFill: 0
--- !u!114 &972454598 stripped --- !u!114 &972454598 stripped
MonoBehaviour: MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3} m_CorrespondingSourceObject: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
@@ -499,7 +520,7 @@ GameObject:
- component: {fileID: 1099265820} - component: {fileID: 1099265820}
- component: {fileID: 1099265819} - component: {fileID: 1099265819}
m_Layer: 0 m_Layer: 0
m_Name: 200.LargeAmbrosialogo_0 m_Name: Ambrosia_Logo
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
@@ -608,6 +629,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9dde416d552cd8958925fd470f36454c, type: 3} m_Script: {fileID: 11500000, guid: 9dde416d552cd8958925fd470f36454c, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: Assembly-CSharp::EndSplash m_EditorClassIdentifier: Assembly-CSharp::EndSplash
nextSceneName: Intro
--- !u!4 &1951716846 --- !u!4 &1951716846
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -635,6 +657,10 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: Faders value: Faders
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2430368862052493625, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: fadeDuration
value: 2
objectReference: {fileID: 0}
- target: {fileID: 2430368862052493625, guid: 989290b32c4040e43afd4f29b24b669e, type: 3} - target: {fileID: 2430368862052493625, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: callbackScript propertyPath: callbackScript
value: value:
@@ -679,6 +705,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: fadeDuration
value: 2
objectReference: {fileID: 0}
- target: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3} - target: {fileID: 7586141922689918976, guid: 989290b32c4040e43afd4f29b24b669e, type: 3}
propertyPath: callbackScript propertyPath: callbackScript
value: value:
-17
View File
@@ -1,17 +0,0 @@
using UnityEngine;
public class EndSplash : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start() { }
// Update is called once per frame
void Update() { }
void OnFadeStarted() { }
void OnFadeComplete()
{
UnityEngine.SceneManagement.SceneManager.LoadScene("MainMenu");
}
}
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 537357e1739e92da0baf85b7aef8a612
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+46
View File
@@ -0,0 +1,46 @@
using UnityEngine;
using System.Collections;
public class Intro : FadeCallback
{
public AudioSource music;
public MonoBehaviour faderScript; // Reference to the Fader script for handling the fade effect
private IEnumerator playAudioCoroutine;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update() { }
public override void OnFadeStarted()
{
playAudioCoroutine = PlayAudioThenActivateGameObject();
StartCoroutine(playAudioCoroutine);
}
public override void OnFadeComplete() { }
public void forceStopAudioCoroutine()
{
if (playAudioCoroutine != null)
{
StopCoroutine(playAudioCoroutine);
playAudioCoroutine = null;
}
music.Stop();
}
private IEnumerator PlayAudioThenActivateGameObject()
{
music.Play();
yield return new WaitUntil(() => music.time >= music.clip.length);
faderScript.Invoke("resetFader", 0.0f);
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 594bb1fe3171425d5abf1bba51562952
+30
View File
@@ -0,0 +1,30 @@
using UnityEngine;
using UnityEngine.InputSystem;
public class IntroSkipper : MonoBehaviour
{
public Intro fadeIn;
public Fader fadeOut;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
var keyboard = Keyboard.current;
var mouse = Mouse.current;
if (keyboard != null && keyboard.anyKey.wasPressedThisFrame
||
mouse != null && mouse.leftButton.wasPressedThisFrame)
{
fadeIn.forceStopAudioCoroutine();
fadeOut.resetFader();
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: ee75bedbbbf072e1ca4d633925674475
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ae5479cb3e81a6773b311e88ba24952d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,11 +1,10 @@
using NUnit.Framework;
using UnityEngine; using UnityEngine;
public class SplashScreen : MonoBehaviour public class SplashScreen : FadeCallback
{ {
public AudioSource yeah; // Reference to the AudioSource component for playing the sound effect public AudioSource yeah; // Reference to the AudioSource component for playing the sound effect
public MonoBehaviour faderScript; // Reference to the Fader script for handling the fade effect public Fader faderScript; // Reference to the Fader script for handling the fade effect
// Start is called once before the first execution of Update after the MonoBehaviour is created // Start is called once before the first execution of Update after the MonoBehaviour is created
void Start() { } void Start() { }
@@ -13,13 +12,13 @@ public class SplashScreen : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void Update() { } void Update() { }
void OnFadeStarted() public override void OnFadeStarted()
{ {
yeah.PlayDelayed(1.0f); yeah.PlayDelayed(1.0f);
} }
void OnFadeComplete() public override void OnFadeComplete()
{ {
faderScript.Invoke("resetFader", 1.1f); faderScript.resetFader();
} }
} }
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 324e703bfe536666d881917d75b5baf0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+19
View File
@@ -0,0 +1,19 @@
using UnityEngine;
public class EndSplash : FadeCallback
{
public string nextSceneName; // Name of the next scene to load after the splash screen
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start() { }
// Update is called once per frame
void Update() { }
public override void OnFadeStarted() { }
public override void OnFadeComplete()
{
UnityEngine.SceneManagement.SceneManager.LoadScene(nextSceneName);
}
}
+8
View File
@@ -0,0 +1,8 @@
using UnityEngine;
public abstract class FadeCallback : MonoBehaviour
{
public abstract void OnFadeStarted();
public abstract void OnFadeComplete();
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: fc86a1ba9ae6823f49efc60e21ae4be2
@@ -6,7 +6,7 @@ public class Fader : MonoBehaviour
public bool isFadingIn = true; // Flag to determine if we are fading in or out public bool isFadingIn = true; // Flag to determine if we are fading in or out
public MonoBehaviour callbackScript = null; // Reference to the script that will be called after the fade effect public FadeCallback callbackScript = null; // Reference to the script that will be called after the fade effect
public bool fadeOnStart = true; // Flag to determine if the fade effect should start automatically on Start public bool fadeOnStart = true; // Flag to determine if the fade effect should start automatically on Start
@@ -55,7 +55,7 @@ public class Fader : MonoBehaviour
if (callbackScript != null) if (callbackScript != null)
{ {
// Call the callback method on the specified script // Call the callback method on the specified script
callbackScript.Invoke("OnFadeComplete", 0.0f); callbackScript.OnFadeComplete();
} }
} }
else else
@@ -66,17 +66,17 @@ public class Fader : MonoBehaviour
} }
} }
void setFadingIn() public void setFadingIn()
{ {
isFadingIn = true; isFadingIn = true;
} }
void setFadingOut() public void setFadingOut()
{ {
isFadingIn = false; isFadingIn = false;
} }
void resetFader() public void resetFader()
{ {
startFading = true; startFading = true;
timer = 0.0f; timer = 0.0f;
@@ -84,7 +84,7 @@ public class Fader : MonoBehaviour
if (callbackScript != null) if (callbackScript != null)
{ {
// Call the callback method on the specified script // Call the callback method on the specified script
callbackScript.Invoke("OnFadeStarted", 0.0f); callbackScript.OnFadeStarted();
} }
} }
} }
@@ -8,5 +8,8 @@ EditorBuildSettings:
- enabled: 1 - enabled: 1
path: Assets/Scenes/SplashScreen.unity path: Assets/Scenes/SplashScreen.unity
guid: 2cda990e2423bbf4892e6590ba056729 guid: 2cda990e2423bbf4892e6590ba056729
- enabled: 1
path: Assets/Scenes/Intro.unity
guid: 398375f61fb73204ab12d352d67e37cb
m_configObjects: m_configObjects:
com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 3590b91b4603b465dbb4216d601bff33, type: 3} com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 3590b91b4603b465dbb4216d601bff33, type: 3}