ball testing
This commit is contained in:
parent
7822aec907
commit
a9f605b732
122
Assets/Material/MusicalNote 1.mat
Normal file
122
Assets/Material/MusicalNote 1.mat
Normal file
|
|
@ -0,0 +1,122 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-367688123973374451
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 11
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
version: 7
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: MusicalNote 1
|
||||||
|
m_Shader: {fileID: 4800000, guid: b7839dad95683814aa64166edc107ae2, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
- _SURFACE_TYPE_TRANSPARENT
|
||||||
|
m_InvalidKeywords:
|
||||||
|
- _FLIPBOOKBLENDING_OFF
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses:
|
||||||
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _AlphaTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BaseMap:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 9a11a2bdac4e4b049aec1dd4ce1cc31a, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MaskTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _NormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _AlphaToMask: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendModePreserveSpecular: 1
|
||||||
|
- _BlendOp: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _CameraFadingEnabled: 0
|
||||||
|
- _CameraFarFadeDistance: 2
|
||||||
|
- _CameraNearFadeDistance: 1
|
||||||
|
- _ColorMode: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DistortionBlend: 0.5
|
||||||
|
- _DistortionEnabled: 0
|
||||||
|
- _DistortionStrength: 1
|
||||||
|
- _DistortionStrengthScaled: 0.1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _DstBlendAlpha: 10
|
||||||
|
- _EnableExternalAlpha: 0
|
||||||
|
- _FlipbookBlending: 0
|
||||||
|
- _FlipbookMode: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.5
|
||||||
|
- _SoftParticlesEnabled: 0
|
||||||
|
- _SoftParticlesFarFadeDistance: 1
|
||||||
|
- _SoftParticlesNearFadeDistance: 0
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _SrcBlendAlpha: 1
|
||||||
|
- _Surface: 1
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 1, g: 1, b: 1, a: 0.19215687}
|
||||||
|
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 0.19215687}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
8
Assets/Material/MusicalNote 1.mat.meta
Normal file
8
Assets/Material/MusicalNote 1.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6b2b5ba55383c8e438ecb0eef27b6ccf
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
122
Assets/Material/MusicalNote 2.mat
Normal file
122
Assets/Material/MusicalNote 2.mat
Normal file
|
|
@ -0,0 +1,122 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-367688123973374451
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 11
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
version: 7
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: MusicalNote 2
|
||||||
|
m_Shader: {fileID: 4800000, guid: b7839dad95683814aa64166edc107ae2, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
- _SURFACE_TYPE_TRANSPARENT
|
||||||
|
m_InvalidKeywords:
|
||||||
|
- _FLIPBOOKBLENDING_OFF
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses:
|
||||||
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _AlphaTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BaseMap:
|
||||||
|
m_Texture: {fileID: 2800000, guid: c3ca95e08a3d0714e9bc86a84df5f723, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MaskTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _NormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _AlphaToMask: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendModePreserveSpecular: 1
|
||||||
|
- _BlendOp: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _CameraFadingEnabled: 0
|
||||||
|
- _CameraFarFadeDistance: 2
|
||||||
|
- _CameraNearFadeDistance: 1
|
||||||
|
- _ColorMode: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DistortionBlend: 0.5
|
||||||
|
- _DistortionEnabled: 0
|
||||||
|
- _DistortionStrength: 1
|
||||||
|
- _DistortionStrengthScaled: 0.1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _DstBlendAlpha: 10
|
||||||
|
- _EnableExternalAlpha: 0
|
||||||
|
- _FlipbookBlending: 0
|
||||||
|
- _FlipbookMode: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.5
|
||||||
|
- _SoftParticlesEnabled: 0
|
||||||
|
- _SoftParticlesFarFadeDistance: 1
|
||||||
|
- _SoftParticlesNearFadeDistance: 0
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _SrcBlendAlpha: 1
|
||||||
|
- _Surface: 1
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 1, g: 1, b: 1, a: 0.19215687}
|
||||||
|
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 0.19215687}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
8
Assets/Material/MusicalNote 2.mat.meta
Normal file
8
Assets/Material/MusicalNote 2.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b0a97885436824941be786e094ba2e2c
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
122
Assets/Material/MusicalNote.mat
Normal file
122
Assets/Material/MusicalNote.mat
Normal file
|
|
@ -0,0 +1,122 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-367688123973374451
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 11
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
version: 7
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: MusicalNote
|
||||||
|
m_Shader: {fileID: 4800000, guid: b7839dad95683814aa64166edc107ae2, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
- _SURFACE_TYPE_TRANSPARENT
|
||||||
|
m_InvalidKeywords:
|
||||||
|
- _FLIPBOOKBLENDING_OFF
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses:
|
||||||
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _AlphaTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BaseMap:
|
||||||
|
m_Texture: {fileID: 2800000, guid: c0276936ac733c6489d94a9f5d2fbf41, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MaskTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _NormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _AlphaToMask: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendModePreserveSpecular: 1
|
||||||
|
- _BlendOp: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _CameraFadingEnabled: 0
|
||||||
|
- _CameraFarFadeDistance: 2
|
||||||
|
- _CameraNearFadeDistance: 1
|
||||||
|
- _ColorMode: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DistortionBlend: 0.5
|
||||||
|
- _DistortionEnabled: 0
|
||||||
|
- _DistortionStrength: 1
|
||||||
|
- _DistortionStrengthScaled: 0.1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _DstBlendAlpha: 10
|
||||||
|
- _EnableExternalAlpha: 0
|
||||||
|
- _FlipbookBlending: 0
|
||||||
|
- _FlipbookMode: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.5
|
||||||
|
- _SoftParticlesEnabled: 0
|
||||||
|
- _SoftParticlesFarFadeDistance: 1
|
||||||
|
- _SoftParticlesNearFadeDistance: 0
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _SrcBlendAlpha: 1
|
||||||
|
- _Surface: 1
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 1, g: 1, b: 1, a: 0.19215687}
|
||||||
|
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 0.19215687}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
8
Assets/Material/MusicalNote.mat.meta
Normal file
8
Assets/Material/MusicalNote.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3b944bb8a385e2e4a9d146c8bc962ee2
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -85,6 +85,6 @@ Material:
|
||||||
- _UseUIAlphaClip: 0
|
- _UseUIAlphaClip: 0
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _Color: {r: 0.34425, g: 0.214812, b: 0, a: 1}
|
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,6 @@ Material:
|
||||||
- _UseUIAlphaClip: 0
|
- _UseUIAlphaClip: 0
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _Color: {r: 0.243, g: 0.151632, b: 0, a: 1}
|
- _Color: {r: 0.76, g: 0, b: 0, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|
|
||||||
10805
Assets/Scenes/BallProto.unity
Normal file
10805
Assets/Scenes/BallProto.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/BallProto.unity.meta
Normal file
7
Assets/Scenes/BallProto.unity.meta
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fc3d1e6354a936248868e65191ce5512
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -322,6 +322,7 @@ RectTransform:
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 1652803782}
|
- {fileID: 1652803782}
|
||||||
|
- {fileID: 1974921475}
|
||||||
- {fileID: 1458644345}
|
- {fileID: 1458644345}
|
||||||
- {fileID: 805560767}
|
- {fileID: 805560767}
|
||||||
- {fileID: 2086427312}
|
- {fileID: 2086427312}
|
||||||
|
|
@ -329,11 +330,11 @@ RectTransform:
|
||||||
- {fileID: 863444960}
|
- {fileID: 863444960}
|
||||||
- {fileID: 1834870004}
|
- {fileID: 1834870004}
|
||||||
- {fileID: 585650512}
|
- {fileID: 585650512}
|
||||||
- {fileID: 1974921475}
|
|
||||||
- {fileID: 461825204}
|
- {fileID: 461825204}
|
||||||
- {fileID: 2013350273}
|
- {fileID: 2013350273}
|
||||||
- {fileID: 1479529849}
|
- {fileID: 1479529849}
|
||||||
- {fileID: 847997541}
|
- {fileID: 847997541}
|
||||||
|
- {fileID: 1617050080}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
|
@ -4203,6 +4204,7 @@ MonoBehaviour:
|
||||||
removePinBtn: {fileID: 842425062}
|
removePinBtn: {fileID: 842425062}
|
||||||
followSeekerToggle: {fileID: 392222973}
|
followSeekerToggle: {fileID: 392222973}
|
||||||
playbackTimeTxt: {fileID: 847997542}
|
playbackTimeTxt: {fileID: 847997542}
|
||||||
|
hitCountTxt: {fileID: 1617050081}
|
||||||
--- !u!4 &449693225
|
--- !u!4 &449693225
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -11833,6 +11835,140 @@ CanvasRenderer:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1604227461}
|
m_GameObject: {fileID: 1604227461}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &1617050079
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1617050080}
|
||||||
|
- component: {fileID: 1617050082}
|
||||||
|
- component: {fileID: 1617050081}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: txtHitCount
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1617050080
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1617050079}
|
||||||
|
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: 48888091}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
|
m_AnchoredPosition: {x: 108.099976, y: 262.2}
|
||||||
|
m_SizeDelta: {x: 200, y: 50}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1617050081
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1617050079}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, 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_text: 0
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_enableVertexGradient: 0
|
||||||
|
m_colorMode: 3
|
||||||
|
m_fontColorGradient:
|
||||||
|
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
|
m_spriteAsset: {fileID: 0}
|
||||||
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
|
m_overrideHtmlColors: 0
|
||||||
|
m_faceColor:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontSize: 26.54
|
||||||
|
m_fontSizeBase: 26.54
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 1
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_enableWordWrapping: 1
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 1
|
||||||
|
m_enableExtraPadding: 0
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_parseCtrlCharacters: 1
|
||||||
|
m_isOrthographic: 1
|
||||||
|
m_isCullingEnabled: 0
|
||||||
|
m_horizontalMapping: 0
|
||||||
|
m_verticalMapping: 0
|
||||||
|
m_uvLineOffset: 0
|
||||||
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
|
m_VertexBufferAutoSizeReduction: 0
|
||||||
|
m_useMaxVisibleDescender: 1
|
||||||
|
m_pageToDisplay: 1
|
||||||
|
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
--- !u!222 &1617050082
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1617050079}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &1631227555
|
--- !u!1 &1631227555
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ public class CamFollower : MonoBehaviour
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void LateUpdate(){
|
void FixedUpdate(){
|
||||||
transform.position = Vector3.Lerp(transform.position, target.position + offset, speed);
|
transform.position = Vector3.Lerp(transform.position, target.position + offset, speed);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,36 +3,42 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using Unity.VisualScripting;
|
using Unity.VisualScripting;
|
||||||
using UnityEditor.SearchService;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Rendering.Universal;
|
using UnityEngine.Rendering.Universal;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
using UnityEngine.U2D;
|
using UnityEngine.U2D;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class Mover : MonoBehaviour
|
public class Mover : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
[Header("Prep Mode stuff")]
|
||||||
|
public GameObject prepModePanel;
|
||||||
|
public TMP_Text txtProgress;
|
||||||
|
public Button btnBackToPrep;
|
||||||
|
public Button btnSave;
|
||||||
|
public Button btnRun;
|
||||||
|
|
||||||
|
|
||||||
|
[Header("End of prep mode stuff")]
|
||||||
public Vector3 movingSpeed;
|
public Vector3 movingSpeed;
|
||||||
public float loudBoost = 1f;
|
public float loudBoost = 1f;
|
||||||
public float momentumBoost = 1f;
|
public float momentumBoost = 1f;
|
||||||
|
|
||||||
public AudioSplitter splitter;
|
|
||||||
|
|
||||||
public GameObject prefab;
|
|
||||||
|
|
||||||
|
|
||||||
float prev_loud = 0;
|
|
||||||
|
|
||||||
public float loudnessThreshold = 0.08f;
|
public float loudnessThreshold = 0.08f;
|
||||||
public float yieldTime = 0.2f;
|
public float yieldTime = 0.2f;
|
||||||
float LastTime;
|
float LastTime;
|
||||||
public SpriteShapeController botShape;
|
|
||||||
public SpriteShapeController topShape;
|
|
||||||
public LineRenderer botLineRenderer, topLineRenderer;
|
public LineRenderer botLineRenderer, topLineRenderer;
|
||||||
public DrawShape botDrawer;
|
public DrawShape botDrawer;
|
||||||
public DrawShape topDrawer;
|
public DrawShape topDrawer;
|
||||||
public GameObject txtDebug;
|
public GameObject txtDebug;
|
||||||
public bool isDebug = false;
|
public bool isDebug = false;
|
||||||
public Light2D glowLight;
|
public Light2D glowLight;
|
||||||
|
public Transform scalingObject;
|
||||||
|
public float scalingEffect = 0.1f;
|
||||||
|
public float scalingResetLerp = 0.05f;
|
||||||
|
Vector3 defaultSize;
|
||||||
public float glowReductionSpeed = 2f;
|
public float glowReductionSpeed = 2f;
|
||||||
public float fovZoomingSpeed = 0.5f;
|
public float fovZoomingSpeed = 0.5f;
|
||||||
|
|
||||||
|
|
@ -48,20 +54,31 @@ public class Mover : MonoBehaviour
|
||||||
|
|
||||||
float defFOV;
|
float defFOV;
|
||||||
|
|
||||||
public AudioSource source;
|
|
||||||
|
|
||||||
List<float> recordedTimes = null;
|
List<float> recordedTimes = null;
|
||||||
List<float> pastTimes = null;
|
List<float> pastTimes = null;
|
||||||
|
|
||||||
|
float startedTime =0;
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
startedTime = Time.time;
|
||||||
|
defaultSize = scalingObject.localScale;
|
||||||
defFOV = Camera.main.orthographicSize;
|
defFOV = Camera.main.orthographicSize;
|
||||||
if (!playReplay) { themeMan.Randomize(); }
|
if (!playReplay) { themeMan.Randomize(); }
|
||||||
|
|
||||||
if(PrepConnector.saveLoadData != null){
|
if(PrepConnector.saveLoadData != null){
|
||||||
recordedTimes = PrepConnector.saveLoadData.hits;
|
recordedTimes = PrepConnector.saveLoadData.hits;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
playReplay = PlayerPrefs.HasKey("prep_data");
|
||||||
|
if(playReplay){
|
||||||
|
recordedStepsJson = PlayerPrefs.GetString("prep_data");
|
||||||
|
}
|
||||||
|
|
||||||
|
Screen.orientation = ScreenOrientation.Portrait;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<float> allHits = new List<float>();
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
// Application.targetFrameRate = 164;
|
// Application.targetFrameRate = 164;
|
||||||
|
|
@ -69,9 +86,41 @@ public class Mover : MonoBehaviour
|
||||||
{
|
{
|
||||||
recordedSteps = JsonConvert.DeserializeObject<List<RecorderStep>>(recordedStepsJson);
|
recordedSteps = JsonConvert.DeserializeObject<List<RecorderStep>>(recordedStepsJson);
|
||||||
GenerateRecordedPlatform();
|
GenerateRecordedPlatform();
|
||||||
|
}else{
|
||||||
|
//Show prep mode
|
||||||
|
prepModePanel.SetActive(true);
|
||||||
|
|
||||||
|
btnBackToPrep.onClick.AddListener(()=>{ SceneManager.LoadScene("prep"); });
|
||||||
|
btnRun.onClick.AddListener(OnRun);
|
||||||
|
btnSave.onClick.AddListener(OnSaveBtn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnRun(){
|
||||||
|
PlayerPrefs.SetString("prep_data", currentStepsJson);
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
|
||||||
|
SceneManager.LoadScene("Runner");
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnSaveBtn(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int totalHits = 0;
|
||||||
|
public void SetHits(List<float> hits){
|
||||||
|
allHits.AddRange(hits);
|
||||||
|
float lastTime = hits[hits.Count-1];
|
||||||
|
for(int i=1; i < 3; i++){
|
||||||
|
foreach(float hit in hits){
|
||||||
|
allHits.Add(hit + lastTime*i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
totalHits = hits.Count * 3;
|
||||||
|
}
|
||||||
|
|
||||||
Vector3 LastPos;
|
Vector3 LastPos;
|
||||||
|
|
||||||
float movingSpeedMultiplier = 1;
|
float movingSpeedMultiplier = 1;
|
||||||
|
|
@ -114,6 +163,8 @@ public class Mover : MonoBehaviour
|
||||||
}
|
}
|
||||||
void FixedUpdate()
|
void FixedUpdate()
|
||||||
{
|
{
|
||||||
|
time=Time.time - startedTime;
|
||||||
|
|
||||||
movingSpeedMultiplier = Mathf.Lerp(movingSpeedMultiplier, 1, Time.deltaTime * 2);
|
movingSpeedMultiplier = Mathf.Lerp(movingSpeedMultiplier, 1, Time.deltaTime * 2);
|
||||||
float boostedX = movingSpeed.x * Mathf.Clamp((movingSpeedMultiplier * 1),0,1.25f);
|
float boostedX = movingSpeed.x * Mathf.Clamp((movingSpeedMultiplier * 1),0,1.25f);
|
||||||
float boostedY = movingSpeed.y * (movingSpeedMultiplier * 1f);
|
float boostedY = movingSpeed.y * (movingSpeedMultiplier * 1f);
|
||||||
|
|
@ -258,35 +309,24 @@ public class Mover : MonoBehaviour
|
||||||
|
|
||||||
float tensionBuildup = 0f;
|
float tensionBuildup = 0f;
|
||||||
float endTimer = 0;
|
float endTimer = 0;
|
||||||
|
|
||||||
|
public float time=0;
|
||||||
void PreWork()
|
void PreWork()
|
||||||
{
|
{
|
||||||
float loudness_delta = splitter.loudness - prev_loud;
|
bool notTooShort = (time - LastTime) > yieldTime;
|
||||||
bool notTooShort = (Time.time - LastTime) > yieldTime;
|
|
||||||
bool oldLoudLogic = splitter.loudness > loudnessThreshold && prev_loud < loudnessThreshold;
|
|
||||||
bool newLoudLogic = (loudness_delta > loudnessThreshold && notTooShort);
|
|
||||||
|
|
||||||
bool prepLogic = false;
|
bool newPrepLogic = allHits[0] <time;
|
||||||
if(pastTimes.Count <= 0){
|
if(newPrepLogic){
|
||||||
if(endTimer < 10f){
|
allHits.RemoveAt(0);
|
||||||
endTimer+=Time.deltaTime;
|
|
||||||
}else{
|
|
||||||
SceneManager.LoadScene("prep");
|
|
||||||
endTimer=0;
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
if(pastTimes[0] < source.time){
|
|
||||||
prepLogic = true;
|
|
||||||
pastTimes.RemoveAt(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
txtProgress.text = $"{allHits.Count} left of {totalHits}. One cycle : {(totalHits/3f).ToString("n0")}";
|
||||||
bool newDynamicLogic = recordedTimes == null ? oldLoudLogic : prepLogic ;
|
// bool newDynamicLogic = recordedTimes == null ? oldLoudLogic : prepLogic ;
|
||||||
tensionBuildup += Time.deltaTime;
|
tensionBuildup += Time.deltaTime;
|
||||||
|
|
||||||
if (newDynamicLogic || Input.GetKeyDown(KeyCode.Space))
|
if (newPrepLogic || Input.GetKeyDown(KeyCode.Space))
|
||||||
{
|
{
|
||||||
Debug.Log(LastTime - Time.time);
|
Debug.Log(LastTime - time);
|
||||||
//Instantiate(prefab, transform.position, Quaternion.identity);
|
//Instantiate(prefab, transform.position, Quaternion.identity);
|
||||||
int random = Random.Range(0, 3);
|
int random = Random.Range(0, 3);
|
||||||
bool flippedX = LastPos.x - transform.position.x > LastPos.y - transform.position.y;
|
bool flippedX = LastPos.x - transform.position.x > LastPos.y - transform.position.y;
|
||||||
|
|
@ -294,39 +334,41 @@ public class Mover : MonoBehaviour
|
||||||
if (flippedX)
|
if (flippedX)
|
||||||
{
|
{
|
||||||
movingSpeed.x = -movingSpeed.x;
|
movingSpeed.x = -movingSpeed.x;
|
||||||
Instantiate(prefab, transform.position + new Vector3(-1 / 5f, 0), Quaternion.Euler(new Vector3(0, 0, 0))).transform.GetComponentInChildren<TextMesh>().text = loudness_delta.ToString("n3");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
movingSpeed.y = -movingSpeed.y;
|
movingSpeed.y = -movingSpeed.y;
|
||||||
Instantiate(prefab, transform.position + new Vector3(0, -1 / 5f), Quaternion.Euler(new Vector3(0, 0, 90))).transform.GetComponentInChildren<TextMesh>().text = loudness_delta.ToString("n3"); ;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
movingSpeedMultiplier += (loudness_delta * loudBoost) / loudnessThreshold;
|
movingSpeedMultiplier += (loudBoost) / loudnessThreshold;
|
||||||
movingSpeedMultiplier += tensionBuildup * momentumBoost;
|
movingSpeedMultiplier += tensionBuildup * momentumBoost;
|
||||||
|
|
||||||
LastTime = Time.time;
|
LastTime = time;
|
||||||
currentSteps.Add(new RecorderStep(LastTime, movingSpeed, movingSpeedMultiplier, transform.position));
|
currentSteps.Add(new RecorderStep(LastTime, movingSpeed, movingSpeedMultiplier, transform.position));
|
||||||
currentStepsJson = JsonConvert.SerializeObject(currentSteps);
|
currentStepsJson = JsonConvert.SerializeObject(currentSteps);
|
||||||
LastPos = transform.position;
|
LastPos = transform.position;
|
||||||
|
|
||||||
tensionBuildup = 0;
|
tensionBuildup = 0;
|
||||||
}
|
}
|
||||||
prev_loud = splitter.loudness;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
void PostWork()
|
void PostWork()
|
||||||
{
|
{
|
||||||
|
scalingObject.localScale = Vector3.Lerp(scalingObject.localScale, defaultSize, scalingResetLerp);
|
||||||
|
|
||||||
if(recordedSteps.Count <= 0) { return; }
|
if(recordedSteps.Count <= 0) { return; }
|
||||||
tensionBuildup += Time.deltaTime;
|
tensionBuildup += Time.deltaTime;
|
||||||
if (Time.time >= recordedSteps[0].time)
|
if (time >= recordedSteps[0].time)
|
||||||
{
|
{
|
||||||
//Time to act
|
//Time to act
|
||||||
movingSpeed = recordedSteps[0].movingSpeed;
|
movingSpeed = recordedSteps[0].movingSpeed;
|
||||||
movingSpeedMultiplier = recordedSteps[0].movingSpeedMultiplier;
|
movingSpeedMultiplier = recordedSteps[0].movingSpeedMultiplier;
|
||||||
musicSourceToSync.time = (float)recordedSteps[0].time;
|
musicSourceToSync.time = (float)recordedSteps[0].time % (musicSourceToSync.clip.length);
|
||||||
|
if(!musicSourceToSync.isPlaying){
|
||||||
|
musicSourceToSync.Play();
|
||||||
|
}
|
||||||
|
|
||||||
recordedSteps.RemoveAt(0);
|
recordedSteps.RemoveAt(0);
|
||||||
|
|
||||||
|
|
@ -361,7 +403,7 @@ public class Mover : MonoBehaviour
|
||||||
|
|
||||||
themeMan.Randomize(movingSpeedMultiplier /3f);
|
themeMan.Randomize(movingSpeedMultiplier /3f);
|
||||||
targetRotation *= Quaternion.Euler(0, 0, -90);
|
targetRotation *= Quaternion.Euler(0, 0, -90);
|
||||||
|
scalingObject.localScale -= (Vector3.one * scalingEffect);
|
||||||
// themeMan.SetColor(new Color(Random.Range(0f,1f), Random.Range(0f,1f),Random.Range(0f,1f)));
|
// themeMan.SetColor(new Color(Random.Range(0f,1f), Random.Range(0f,1f),Random.Range(0f,1f)));
|
||||||
/*themeMan.r = Random.Range(0f, 1f);
|
/*themeMan.r = Random.Range(0f, 1f);
|
||||||
themeMan.g = Random.Range(0f, 1f);
|
themeMan.g = Random.Range(0f, 1f);
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class MoverSettingsManager : MonoBehaviour
|
public class MoverSettingsManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
public Slider xSlider,ySlider;
|
public Button btnClose,btnBackToPrep,btnRestart;
|
||||||
public Button btnClose,btnSave,btnRestart;
|
|
||||||
public PredictiveMover mover;
|
public PredictiveMover mover;
|
||||||
|
|
||||||
public GameObject panel;
|
public GameObject panel;
|
||||||
|
|
@ -14,11 +14,10 @@ public class MoverSettingsManager : MonoBehaviour
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
xSlider.onValueChanged.AddListener(OnSettingsChanged);
|
|
||||||
ySlider.onValueChanged.AddListener(OnSettingsChanged);
|
|
||||||
|
|
||||||
btnClose.onClick.AddListener(HideSettings);
|
btnClose.onClick.AddListener(HideSettings);
|
||||||
btnRestart.onClick.AddListener(Restart);
|
btnRestart.onClick.AddListener(Restart);
|
||||||
|
btnBackToPrep.onClick.AddListener(()=>{SceneManager.LoadScene("prep");});
|
||||||
m_onSettingsChanged();
|
m_onSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -32,9 +31,6 @@ public class MoverSettingsManager : MonoBehaviour
|
||||||
}
|
}
|
||||||
|
|
||||||
void m_onSettingsChanged(){
|
void m_onSettingsChanged(){
|
||||||
mover.multipliers.x = xSlider.value;
|
|
||||||
mover.multipliers.y = ySlider.value;
|
|
||||||
|
|
||||||
mover.RegenerateLines();
|
mover.RegenerateLines();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using UnityEngine.EventSystems;
|
||||||
public class MoverSettingsPanel : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
|
public class MoverSettingsPanel : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
|
||||||
{
|
{
|
||||||
|
|
||||||
float touchdownTimer =0f;
|
public float touchdownTimer =0f;
|
||||||
public void OnPointerDown(PointerEventData eventData)
|
public void OnPointerDown(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
touchdownTimer =0f;
|
touchdownTimer =0f;
|
||||||
|
|
@ -14,7 +14,7 @@ public class MoverSettingsPanel : MonoBehaviour, IPointerDownHandler, IPointerUp
|
||||||
|
|
||||||
public void OnPointerUp(PointerEventData eventData)
|
public void OnPointerUp(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
if(touchdownTimer > 4){
|
if(touchdownTimer > 2){
|
||||||
settingsPanel.SetActive(true);
|
settingsPanel.SetActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -23,7 +23,7 @@ public class MoverSettingsPanel : MonoBehaviour, IPointerDownHandler, IPointerUp
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if(touchdownTimer < 5f){
|
if(touchdownTimer < 3f){
|
||||||
touchdownTimer +=Time.deltaTime;
|
touchdownTimer +=Time.deltaTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,17 +38,20 @@ public class PredictiveMover : MonoBehaviour
|
||||||
Restart();
|
Restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float playbackTime;
|
||||||
void FixedUpdate(){
|
void FixedUpdate(){
|
||||||
// RegenerateLines();
|
// RegenerateLines();
|
||||||
objectToMove.transform.position = Vector3.Lerp(objectToMove.transform.position,GetPositionAtTime(source.time + audioOffset),0.5f);
|
objectToMove.transform.position = Vector3.Lerp(objectToMove.transform.position,GetPositionAtTime(source.time + audioOffset),0.5f);
|
||||||
CamFollower.instance.UpdateFrame();
|
CamFollower.instance.UpdateFrame();
|
||||||
|
source.time = playbackTime;
|
||||||
|
playbackTime+=Time.deltaTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Restart(){
|
public void Restart(){
|
||||||
source.time =0;
|
playbackTime=0;
|
||||||
source.Play();
|
source.Play();
|
||||||
|
|
||||||
|
|
||||||
RegenerateLines();
|
RegenerateLines();
|
||||||
List<Vector3> botPoints = new List<Vector3>();
|
List<Vector3> botPoints = new List<Vector3>();
|
||||||
List<Vector3> topPoints = new List<Vector3>();
|
List<Vector3> topPoints = new List<Vector3>();
|
||||||
|
|
|
||||||
19
Assets/Scripts/Mover/SaveLoadMover.cs
Normal file
19
Assets/Scripts/Mover/SaveLoadMover.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class SaveLoadMover : MonoBehaviour
|
||||||
|
{
|
||||||
|
public Mover mover;
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scripts/Mover/SaveLoadMover.cs.meta
Normal file
11
Assets/Scripts/Mover/SaveLoadMover.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d2b99dc11aa746e4cabb4b9fad122746
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -7,7 +7,8 @@ using UnityEngine.Networking;
|
||||||
public class LoadFromPrep : MonoBehaviour
|
public class LoadFromPrep : MonoBehaviour
|
||||||
{
|
{
|
||||||
public AudioSource source;
|
public AudioSource source;
|
||||||
public PredictiveMover mover;
|
public Mover mover;
|
||||||
|
public List<float> allHits;
|
||||||
|
|
||||||
void Awake(){
|
void Awake(){
|
||||||
if(PrepConnector.saveLoadData == null){
|
if(PrepConnector.saveLoadData == null){
|
||||||
|
|
@ -19,7 +20,8 @@ public class LoadFromPrep : MonoBehaviour
|
||||||
void Start(){
|
void Start(){
|
||||||
if(PrepConnector.saveLoadData != null){
|
if(PrepConnector.saveLoadData != null){
|
||||||
StartCoroutine(LoadAudioCoroutine(PrepConnector.saveLoadData.musicFile));
|
StartCoroutine(LoadAudioCoroutine(PrepConnector.saveLoadData.musicFile));
|
||||||
mover.allHits = PrepConnector.saveLoadData.hits;
|
allHits = PrepConnector.saveLoadData.hits;
|
||||||
|
mover.SetHits(allHits);
|
||||||
PlayerPrefs.SetString("saveData", JsonUtility.ToJson(PrepConnector.saveLoadData));
|
PlayerPrefs.SetString("saveData", JsonUtility.ToJson(PrepConnector.saveLoadData));
|
||||||
PlayerPrefs.Save();
|
PlayerPrefs.Save();
|
||||||
}
|
}
|
||||||
|
|
@ -29,7 +31,7 @@ public class LoadFromPrep : MonoBehaviour
|
||||||
{
|
{
|
||||||
string filePath = Path.Combine(Application.persistentDataPath, fileName);
|
string filePath = Path.Combine(Application.persistentDataPath, fileName);
|
||||||
string url = "file://" + filePath;
|
string url = "file://" + filePath;
|
||||||
|
Debug.Log("Loading file from " + url);
|
||||||
UnityWebRequest www = UnityWebRequestMultimedia.GetAudioClip(url, AudioType.WAV); // Use AudioType.MPEG for MP3 files
|
UnityWebRequest www = UnityWebRequestMultimedia.GetAudioClip(url, AudioType.WAV); // Use AudioType.MPEG for MP3 files
|
||||||
yield return www.SendWebRequest();
|
yield return www.SendWebRequest();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,11 @@ public class PrepConnector : MonoBehaviour
|
||||||
public static SaveLoadData saveLoadData;
|
public static SaveLoadData saveLoadData;
|
||||||
|
|
||||||
public void LoadPlay(){
|
public void LoadPlay(){
|
||||||
|
Time.timeScale = 1f;
|
||||||
SaveLoadPrep.instance.Save();
|
SaveLoadPrep.instance.Save();
|
||||||
saveLoadData = SaveLoadPrep.instance.saveLoadData;
|
saveLoadData = SaveLoadPrep.instance.saveLoadData;
|
||||||
|
PlayerPrefs.DeleteKey("prep_data");
|
||||||
|
PlayerPrefs.Save();
|
||||||
SceneManager.LoadScene("Runner");
|
SceneManager.LoadScene("Runner");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ public class PrepController : MonoBehaviour
|
||||||
public Button removePinBtn;
|
public Button removePinBtn;
|
||||||
public Toggle followSeekerToggle;
|
public Toggle followSeekerToggle;
|
||||||
public TMP_Text playbackTimeTxt;
|
public TMP_Text playbackTimeTxt;
|
||||||
|
public TMP_Text hitCountTxt;
|
||||||
public static List<GameObject> markers = new List<GameObject>();
|
public static List<GameObject> markers = new List<GameObject>();
|
||||||
|
|
||||||
public static void Reset(){
|
public static void Reset(){
|
||||||
|
|
@ -30,10 +31,38 @@ public class PrepController : MonoBehaviour
|
||||||
removePinBtn.onClick.AddListener(RemoveMarker);
|
removePinBtn.onClick.AddListener(RemoveMarker);
|
||||||
instance = this;
|
instance = this;
|
||||||
|
|
||||||
|
Screen.orientation = ScreenOrientation.LandscapeLeft;
|
||||||
}
|
}
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
if(Input.GetKeyDown(KeyCode.RightArrow)){
|
||||||
|
AddMarker();
|
||||||
|
}
|
||||||
|
if(Input.GetKeyDown(KeyCode.LeftArrow)){
|
||||||
|
|
||||||
|
float lastTime=0f;
|
||||||
|
for(int i=0; i < markers.Count; i++){
|
||||||
|
if(markers[i].GetComponent<Marker>().myTime < source.time){
|
||||||
|
lastTime = markers[i].GetComponent<Marker>().myTime;
|
||||||
|
}else{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Vector3 newCamPos = new Vector3(lastTime * AudioAnalyzer.instance.zoomingYMult, cam.position.y, cam.position.z);
|
||||||
|
if(source.isPlaying){
|
||||||
|
TogglePlay();
|
||||||
|
cam.position = newCamPos;
|
||||||
|
TogglePlay();
|
||||||
|
}else{
|
||||||
|
cam.position = newCamPos;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(Input.GetKey(KeyCode.RightShift)){
|
||||||
|
RemoveMarker();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
hitCountTxt.text = markers.Count.ToString();
|
||||||
playbackTimeTxt.text = source.time.ToString("n3");
|
playbackTimeTxt.text = source.time.ToString("n3");
|
||||||
|
|
||||||
if(followSeekerToggle.isOn){
|
if(followSeekerToggle.isOn){
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,17 @@ public class SaveLoadPrep : MonoBehaviour
|
||||||
saveBtn.onClick.AddListener(Save);
|
saveBtn.onClick.AddListener(Save);
|
||||||
loadBtn.onClick.AddListener(ShowLoadContent);
|
loadBtn.onClick.AddListener(ShowLoadContent);
|
||||||
instance =this;
|
instance =this;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start(){
|
||||||
|
if(PrepConnector.saveLoadData != null){
|
||||||
|
saveLoadData = PrepConnector.saveLoadData;
|
||||||
|
Debug.Log("Loading music file at " + saveLoadData.musicFile);
|
||||||
|
MusicLoader.instance.OnFileSelected(saveLoadData.musicFile, true);
|
||||||
|
PrepController.instance.SetMarkers(saveLoadData.hits);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public class TimescaleAdjuster : MonoBehaviour
|
||||||
if(Time.timeScale > 0.25f){
|
if(Time.timeScale > 0.25f){
|
||||||
Time.timeScale -= 0.25f;
|
Time.timeScale -= 0.25f;
|
||||||
}else{
|
}else{
|
||||||
Time.timeScale = 0.1f;
|
Time.timeScale *= 0.5f;
|
||||||
}
|
}
|
||||||
UpdateText();
|
UpdateText();
|
||||||
|
|
||||||
|
|
|
||||||
154
Assets/Scripts/ProtoTyping/BallPathTest.cs
Normal file
154
Assets/Scripts/ProtoTyping/BallPathTest.cs
Normal file
|
|
@ -0,0 +1,154 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class BallPathTest : MonoBehaviour
|
||||||
|
{
|
||||||
|
public AudioSource audioToSync;
|
||||||
|
public List<float> allHits = new List<float>();
|
||||||
|
public LineRenderer line;
|
||||||
|
public Transform mover;
|
||||||
|
public float horizontalSpeed = 1f;
|
||||||
|
public float gravity = -9f;
|
||||||
|
public float gravityWhenUpwardMult = 1f;
|
||||||
|
public float maxFallSpeed = 10;
|
||||||
|
public AnimationCurve bouncingEfficiencyGraph = new AnimationCurve();
|
||||||
|
// public float bouncingEfficiency =0.4f;
|
||||||
|
public float changeDirCloseThresh = 0.1f;
|
||||||
|
public Vector2 velocity;
|
||||||
|
public bool simulate = false;
|
||||||
|
|
||||||
|
public GameObject bouncerPrefab;
|
||||||
|
public Transform bouncerParent;
|
||||||
|
|
||||||
|
void OnValidate()
|
||||||
|
{
|
||||||
|
if (simulate)
|
||||||
|
{
|
||||||
|
Simulate();
|
||||||
|
simulate = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
float timer = 0;
|
||||||
|
public List<float> hitsCache = new List<float>();
|
||||||
|
List<Vector3> pointsHistory = new List<Vector3>();
|
||||||
|
List<BounceData> hitPointsHistory = new List<BounceData>();
|
||||||
|
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
Reset(Time.time);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Reset(float time){
|
||||||
|
velocity = new Vector2(horizontalSpeed, 0);
|
||||||
|
mover.transform.position = Vector2.zero;
|
||||||
|
hitsCache = new List<float>();
|
||||||
|
hitsCache.AddRange(allHits);
|
||||||
|
pointsHistory= new List<Vector3>();
|
||||||
|
hitPointsHistory= new List<BounceData>();
|
||||||
|
prevTime=time;
|
||||||
|
timer =0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
ManualUpdate(Time.time);
|
||||||
|
}
|
||||||
|
|
||||||
|
float prevTime;
|
||||||
|
bool ManualUpdate(float time){
|
||||||
|
float dt = time - prevTime;
|
||||||
|
prevTime = time;
|
||||||
|
timer += dt;
|
||||||
|
|
||||||
|
audioToSync.time = time;
|
||||||
|
|
||||||
|
if(hitsCache.Count <= 1){return true;}
|
||||||
|
|
||||||
|
velocity += new Vector2(0, gravity*dt * (velocity.y > 0 ? gravityWhenUpwardMult : 1));
|
||||||
|
|
||||||
|
if (timer > hitsCache[0])
|
||||||
|
{
|
||||||
|
float timeToNextHit = hitsCache[1]-hitsCache[0];//(hitsCache.Count >1)?1:0
|
||||||
|
Debug.Log($"hit: {timeToNextHit}, velocity : {velocity}");
|
||||||
|
BounceData bounceData = new BounceData();
|
||||||
|
bounceData.point = mover.position;
|
||||||
|
bounceData.prevVelocity = velocity;
|
||||||
|
//Bounce
|
||||||
|
hitsCache.RemoveAt(0);
|
||||||
|
bool changeDir= timeToNextHit < changeDirCloseThresh;
|
||||||
|
float bouncingEfficiency = bouncingEfficiencyGraph.Evaluate(Mathf.Abs(velocity.y)/maxFallSpeed);
|
||||||
|
velocity = new Vector2(velocity.x * (changeDir ? -1 : 1), velocity.y * -bouncingEfficiency * (changeDir ? 0:1));
|
||||||
|
bounceData.newVelocity = velocity;
|
||||||
|
|
||||||
|
hitPointsHistory.Add(bounceData);
|
||||||
|
}
|
||||||
|
|
||||||
|
velocity = new Vector2(velocity.x, velocity.y < -maxFallSpeed ? -maxFallSpeed : velocity.y);
|
||||||
|
|
||||||
|
mover.transform.position += (Vector3)velocity * dt;
|
||||||
|
|
||||||
|
pointsHistory.Add(mover.transform.position);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Simulate(){
|
||||||
|
float fps = 60;
|
||||||
|
float totalLength = allHits[allHits.Count-1];
|
||||||
|
float curFrame =0;
|
||||||
|
Reset(0);
|
||||||
|
|
||||||
|
//Purge existing bouncing plats
|
||||||
|
bouncerParent.PurgeChildrenEdit();
|
||||||
|
|
||||||
|
int totalFrames = Mathf.CeilToInt(totalLength * fps);
|
||||||
|
while(curFrame < totalFrames){
|
||||||
|
if(ManualUpdate(curFrame/fps)){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
curFrame++;
|
||||||
|
}
|
||||||
|
|
||||||
|
line.positionCount = pointsHistory.Count;
|
||||||
|
line.SetPositions(pointsHistory.ToArray());
|
||||||
|
|
||||||
|
foreach(BounceData data in hitPointsHistory){
|
||||||
|
GameObject newPlat = Instantiate(bouncerPrefab, bouncerParent);
|
||||||
|
newPlat.transform.position = data.point;
|
||||||
|
newPlat.transform.rotation = Quaternion.AngleAxis(CalculateWallAngle(data.prevVelocity,data.newVelocity), Vector3.forward);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static float CalculateWallAngle(Vector2 previousVelocity, Vector2 newVelocity)
|
||||||
|
{
|
||||||
|
// Normalize velocities to ignore the speed and just focus on direction
|
||||||
|
Vector2 previousDir = previousVelocity.normalized;
|
||||||
|
Vector2 newDir = newVelocity.normalized;
|
||||||
|
|
||||||
|
// The reflection vector is the difference between the two normalized velocities
|
||||||
|
Vector2 reflectionVector = newDir - previousDir;
|
||||||
|
|
||||||
|
// Calculate the wall normal using reflection law (midpoint of incoming and outgoing angles)
|
||||||
|
Vector2 wallNormal = Vector2.Perpendicular(reflectionVector).normalized;
|
||||||
|
|
||||||
|
// Calculate the angle of the wall from the wall's normal
|
||||||
|
float wallAngle = Mathf.Atan2(wallNormal.y, wallNormal.x) * Mathf.Rad2Deg;
|
||||||
|
|
||||||
|
// Make sure the angle is between 0 and 360 degrees
|
||||||
|
if (wallAngle < 0) wallAngle += 360;
|
||||||
|
|
||||||
|
return wallAngle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public struct BounceData{
|
||||||
|
public Vector3 point;
|
||||||
|
public Vector2 prevVelocity;
|
||||||
|
public Vector2 newVelocity;
|
||||||
|
}
|
||||||
11
Assets/Scripts/ProtoTyping/BallPathTest.cs.meta
Normal file
11
Assets/Scripts/ProtoTyping/BallPathTest.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3c6b1703eac7163458faaf39e26ad393
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
36
Assets/Scripts/Utils/Extensions.cs
Normal file
36
Assets/Scripts/Utils/Extensions.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public static class CustomExtensions{
|
||||||
|
public static void PurgeChildren(this Transform parent){
|
||||||
|
foreach(Transform child in parent.GetComponentsInChildren<Transform>()){
|
||||||
|
if(child == parent){continue;}
|
||||||
|
|
||||||
|
SmartDestroy(child.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void PurgeChildrenEdit(this Transform parent){
|
||||||
|
for (int i = parent.transform.childCount; i > 0; --i)
|
||||||
|
GameObject.DestroyImmediate(parent.GetChild(0).gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SmartDestroy(UnityEngine.Object obj)
|
||||||
|
{
|
||||||
|
if (obj == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
if (!Application.isPlaying)
|
||||||
|
{
|
||||||
|
GameObject.DestroyImmediate(obj);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
GameObject.Destroy(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
11
Assets/Scripts/Utils/Extensions.cs.meta
Normal file
11
Assets/Scripts/Utils/Extensions.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 677d3c8524a47b1498d6d5d4013fbc43
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -54,10 +54,10 @@ Material:
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
m_Ints: []
|
m_Ints: []
|
||||||
m_Floats:
|
m_Floats:
|
||||||
- _ShockWaveStrength: -0.035
|
- _ShockWaveStrength: -0.01
|
||||||
- _Size: 0.07
|
- _Size: 0.1
|
||||||
- _WaveDistanceFromCenter: 1
|
- _WaveDistanceFromCenter: 1
|
||||||
- _XSizeRatio: 1.777
|
- _XSizeRatio: 1.777
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _RingSpawnPosition: {r: -5.8725924, g: 0.45248157, b: 0, a: 0}
|
- _RingSpawnPosition: {r: 0.40379176, g: 0.46672872, b: 0, a: 0}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|
|
||||||
8
Assets/Textures/FX.meta
Normal file
8
Assets/Textures/FX.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0aed691a7b0729d468600ea34bd84c22
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Textures/FX/musicalNote2.png
Normal file
BIN
Assets/Textures/FX/musicalNote2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.6 KiB |
140
Assets/Textures/FX/musicalNote2.png.meta
Normal file
140
Assets/Textures/FX/musicalNote2.png.meta
Normal file
|
|
@ -0,0 +1,140 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c3ca95e08a3d0714e9bc86a84df5f723
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Textures/FX/musiclaNote1.png
Normal file
BIN
Assets/Textures/FX/musiclaNote1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
140
Assets/Textures/FX/musiclaNote1.png.meta
Normal file
140
Assets/Textures/FX/musiclaNote1.png.meta
Normal file
|
|
@ -0,0 +1,140 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c0276936ac733c6489d94a9f5d2fbf41
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Textures/FX/musiclaNote3.png
Normal file
BIN
Assets/Textures/FX/musiclaNote3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
140
Assets/Textures/FX/musiclaNote3.png.meta
Normal file
140
Assets/Textures/FX/musiclaNote3.png.meta
Normal file
|
|
@ -0,0 +1,140 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9a11a2bdac4e4b049aec1dd4ce1cc31a
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/musics/suzume.wav
Normal file
BIN
Assets/musics/suzume.wav
Normal file
Binary file not shown.
23
Assets/musics/suzume.wav.meta
Normal file
23
Assets/musics/suzume.wav.meta
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 974fc4d090518944baee5aef235f5b58
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 7
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -273,7 +273,7 @@ QualitySettings:
|
||||||
realtimeReflectionProbes: 1
|
realtimeReflectionProbes: 1
|
||||||
billboardsFaceCameraPosition: 1
|
billboardsFaceCameraPosition: 1
|
||||||
useLegacyDetailDistribution: 1
|
useLegacyDetailDistribution: 1
|
||||||
vSyncCount: 1
|
vSyncCount: 0
|
||||||
realtimeGICPUUsage: 100
|
realtimeGICPUUsage: 100
|
||||||
lodBias: 2
|
lodBias: 2
|
||||||
maximumLODLevel: 0
|
maximumLODLevel: 0
|
||||||
|
|
@ -309,6 +309,7 @@ QualitySettings:
|
||||||
Nintendo Switch: 5
|
Nintendo Switch: 5
|
||||||
PS4: 5
|
PS4: 5
|
||||||
PS5: 5
|
PS5: 5
|
||||||
|
Server: 0
|
||||||
Stadia: 5
|
Stadia: 5
|
||||||
Standalone: 5
|
Standalone: 5
|
||||||
WebGL: 3
|
WebGL: 3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user