Sound Bird First iteration Complete

Sound generator creates sound, bird gets spooked, is no longer interactable, and comes back after flying around.
This commit is contained in:
2025-09-23 15:51:25 +02:00
parent 4b206b9b2e
commit ceca90e058
15 changed files with 3375 additions and 140 deletions

View File

@@ -0,0 +1,124 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1102 &-7861420413870341557
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBird_spooked
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: 7559233984510724338}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 22ea14b52af575e4cbec160f0864548c, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBirdSpooked_AnimControler 1
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 1833652908882337205}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1107 &1833652908882337205
AnimatorStateMachine:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: -7861420413870341557}
m_Position: {x: 30, y: 230, z: 0}
- serializedVersion: 1
m_State: {fileID: 5949821756521884776}
m_Position: {x: 30, y: 340, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: -7861420413870341557}
--- !u!1102 &5949821756521884776
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBird_flying
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: d2469df5202f749479c5a5e5d86c5997, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1101 &7559233984510724338
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions: []
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 5949821756521884776}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.673913
m_HasExitTime: 1
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 204de23414941e14e8ef9af6fa5855a4
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 9100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,72 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBird_AnimControler
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 1833652908882337205}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1107 &1833652908882337205
AnimatorStateMachine:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: 5978219229995665873}
m_Position: {x: 30, y: 230, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: 5978219229995665873}
--- !u!1102 &5978219229995665873
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBird_Idle
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 4944cf01faa9ad34b9768e180fdcf7cb, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9ae9c047804c79f458455c23635eae60
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 9100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,180 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBird_Idle
serializedVersion: 7
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_PPtrCurves:
- serializedVersion: 2
curve:
- time: 0
value: {fileID: -1035714051, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.05
value: {fileID: -740831527, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.11666667
value: {fileID: -648204482, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.18333334
value: {fileID: -960280295, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.21666667
value: {fileID: -1144832505, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.28333333
value: {fileID: -1860215682, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.33333334
value: {fileID: 519773293, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.4
value: {fileID: -1067281986, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.45
value: {fileID: -36811272, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.48333332
value: {fileID: -1592089404, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.55
value: {fileID: -1729322987, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.6166667
value: {fileID: -91858778, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.6666667
value: {fileID: -26124593, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.71666664
value: {fileID: 259088195, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.78333336
value: {fileID: 1746085375, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.85
value: {fileID: -182272111, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.8833333
value: {fileID: 1436667360, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 0.93333334
value: {fileID: 545467259, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1
value: {fileID: 121392657, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.0333333
value: {fileID: 938631806, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.1
value: {fileID: 1943282875, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.1333333
value: {fileID: -1918772169, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.2
value: {fileID: -1252794517, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.2666667
value: {fileID: -927331073, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.3166667
value: {fileID: -1038168376, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.3666667
value: {fileID: 1855149249, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.4333333
value: {fileID: -2116798272, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.5
value: {fileID: 2078607702, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.5333333
value: {fileID: -633261939, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.5833334
value: {fileID: -86103801, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.65
value: {fileID: 1380056380, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.7166667
value: {fileID: 1797284751, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.7666667
value: {fileID: 2004539437, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.8
value: {fileID: 1984933759, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.8666667
value: {fileID: -89013944, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.9166666
value: {fileID: 1990407029, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- time: 1.9833333
value: {fileID: -1414182512, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
attribute: m_Sprite
path:
classID: 212
script: {fileID: 0}
flags: 2
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- serializedVersion: 2
path: 0
attribute: 0
script: {fileID: 0}
typeID: 212
customType: 23
isPPtrCurve: 1
isIntCurve: 0
isSerializeReferenceCurve: 0
pptrCurveMapping:
- {fileID: -1035714051, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -740831527, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -648204482, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -960280295, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1144832505, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1860215682, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 519773293, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1067281986, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -36811272, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1592089404, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1729322987, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -91858778, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -26124593, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 259088195, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1746085375, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -182272111, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1436667360, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 545467259, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 121392657, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 938631806, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1943282875, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1918772169, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1252794517, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -927331073, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1038168376, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1855149249, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -2116798272, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 2078607702, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -633261939, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -86103801, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1380056380, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1797284751, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 2004539437, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1984933759, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -89013944, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: 1990407029, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
- {fileID: -1414182512, guid: 9d1670b18fc5fa8459596f1ddd4a4bd7, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 2
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves: []
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4944cf01faa9ad34b9768e180fdcf7cb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,129 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBird_flying
serializedVersion: 7
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_PPtrCurves:
- serializedVersion: 2
curve:
- time: 0
value: {fileID: 1352243374, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.05
value: {fileID: -349576499, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.1
value: {fileID: 413749935, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.15
value: {fileID: 2017559639, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.21666667
value: {fileID: -1655876562, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.26666668
value: {fileID: 1870464896, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.31666666
value: {fileID: 542051099, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.36666667
value: {fileID: -402468524, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.41666666
value: {fileID: 1152881364, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.46666667
value: {fileID: -1294908912, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.53333336
value: {fileID: -621838372, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.5833333
value: {fileID: -1297474476, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.6333333
value: {fileID: -1328927936, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.68333334
value: {fileID: 1646701018, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.73333335
value: {fileID: 1583098563, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.78333336
value: {fileID: -36513208, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.85
value: {fileID: -1786764806, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.9
value: {fileID: 304867534, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 0.95
value: {fileID: -120774828, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- time: 1
value: {fileID: -1620687073, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
attribute: m_Sprite
path:
classID: 212
script: {fileID: 0}
flags: 2
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- serializedVersion: 2
path: 0
attribute: 0
script: {fileID: 0}
typeID: 212
customType: 23
isPPtrCurve: 1
isIntCurve: 0
isSerializeReferenceCurve: 0
pptrCurveMapping:
- {fileID: 1352243374, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -349576499, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 413749935, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 2017559639, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -1655876562, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 1870464896, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 542051099, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -402468524, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 1152881364, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -1294908912, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -621838372, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -1297474476, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -1328927936, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 1646701018, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 1583098563, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -36513208, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -1786764806, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: 304867534, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -120774828, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
- {fileID: -1620687073, guid: 24b1abff6f4a7f946b2ae45b97df35c6, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 1.0166667
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves: []
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d2469df5202f749479c5a5e5d86c5997
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,147 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: soundBird_spooked
serializedVersion: 7
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_PPtrCurves:
- serializedVersion: 2
curve:
- time: 0
value: {fileID: 1611804804, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.033333335
value: {fileID: -1270621477, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.06666667
value: {fileID: -1443242107, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.083333336
value: {fileID: -1754193120, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.11666667
value: {fileID: -1454053410, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.15
value: {fileID: -963416743, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.18333334
value: {fileID: 960557805, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.21666667
value: {fileID: 1860856855, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.23333333
value: {fileID: 1402186056, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.26666668
value: {fileID: -1464771109, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.3
value: {fileID: 1341865396, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.33333334
value: {fileID: 725794037, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.36666667
value: {fileID: 610798074, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.38333333
value: {fileID: 1331452177, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.41666666
value: {fileID: 1458247875, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.45
value: {fileID: 10975412, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.48333332
value: {fileID: -1828920936, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.51666665
value: {fileID: 207413984, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.53333336
value: {fileID: -1395281158, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.56666666
value: {fileID: 312354876, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.6
value: {fileID: 1503701480, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.6333333
value: {fileID: 1500215705, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.6666667
value: {fileID: -1094665041, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.68333334
value: {fileID: -1663139022, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.71666664
value: {fileID: -747184157, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- time: 0.75
value: {fileID: -2127432694, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
attribute: m_Sprite
path:
classID: 212
script: {fileID: 0}
flags: 2
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- serializedVersion: 2
path: 0
attribute: 0
script: {fileID: 0}
typeID: 212
customType: 23
isPPtrCurve: 1
isIntCurve: 0
isSerializeReferenceCurve: 0
pptrCurveMapping:
- {fileID: 1611804804, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1270621477, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1443242107, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1754193120, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1454053410, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -963416743, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 960557805, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 1860856855, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 1402186056, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1464771109, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 1341865396, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 725794037, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 610798074, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 1331452177, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 1458247875, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 10975412, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1828920936, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 207413984, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1395281158, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 312354876, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 1503701480, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: 1500215705, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1094665041, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -1663139022, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -747184157, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
- {fileID: -2127432694, guid: fab3f7d6692d84043991ec5390bcd8e1, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 0.76666665
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 0
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves: []
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 22ea14b52af575e4cbec160f0864548c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,3 +1,4 @@
using Pixelplacement;
using UnityEngine;
public class SoundGenerator : MonoBehaviour
@@ -6,6 +7,8 @@ public class SoundGenerator : MonoBehaviour
[SerializeField] private Sprite exitSprite;
[SerializeField] private AudioClip enterSound;
[SerializeField] private AudioSource audioSource;
[SerializeField] private StateMachine soundBirdSMRef;
[SerializeField] private soundBird_Spooked_FlyBehaviour spookedBirdRef;
private bool playerInside = false;
private SpriteRenderer spriteRenderer;
@@ -33,6 +36,12 @@ public class SoundGenerator : MonoBehaviour
{
audioSource.PlayOneShot(enterSound);
}
if (soundBirdSMRef != null && soundBirdSMRef.currentState.name == "SoundBird")
{
soundBirdSMRef.ChangeState("SoundBirdSpooked"); // Replace with your actual method/state
spookedBirdRef.initiateTweenSpline();
}
// Play sound and change animation/state here if needed
}
}

View File

@@ -0,0 +1,55 @@
using Pixelplacement;
using UnityEngine;
public class soundBird_Spooked_FlyBehaviour : MonoBehaviour
{
public Spline FlightSpline;
public Transform SoundBirdObject;
public float flightDuration;
public float flightDelay;
[Range(0, 1)] public float startPercentage;
private StateMachine stateMachine;
void Awake()
{
stateMachine = GetComponentInParent<StateMachine>();
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
//initiateTweenSpline();
}
public void initiateTweenSpline()
{
Tween.Spline(FlightSpline, SoundBirdObject, 0, 1, false, flightDuration, flightDelay, Tween.EaseLinear, Tween.LoopType.Loop, HandleTweenStarted, HandleTweenFinished);
}
void HandleTweenStarted()
{
//Debug.Log("Tween started!");
// You can add any additional logic here if needed when the tween starts
}
void HandleTweenFinished()
{
if (SoundBirdObject != null)
{
Tween.Stop(SoundBirdObject.GetInstanceID(), Tween.TweenType.Spline); // Stop the spline tween for this object
}
//Debug.Log("Tween finished!");
if (stateMachine != null)
{
stateMachine.ChangeState("SoundBird"); // Change to the desired state name
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 10bb74c0e6993ea428971e8ae0b07ed9